Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ install:
- pip-sync
script:
- pytest -vv -s
- black --check .
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tool.black]
line-length = 119
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| migrations/*
)/
'''
48 changes: 25 additions & 23 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file requirements.txt requirements.in
#
atomicwrites==1.1.5 # via pytest
attrs==18.1.0 # via pytest
colorama==0.3.9 # via pytest
django-cors-headers==2.2.0
django-money==0.14
django==2.0.3
djangorestframework==3.8.2
gunicorn==19.8.1
model-mommy==1.6.0
more-itertools==4.2.0 # via pytest
pluggy==0.6.0 # via pytest
py-moneyed==0.7.0 # via django-money
py==1.5.3 # via pytest
pytest-django==3.3.2
pytest==3.6.2
pytz==2018.4 # via django
six==1.11.0 # via model-mommy, more-itertools, pytest
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
atomicwrites==1.1.5 # via pytest
attrs==18.1.0 # via pytest
django-cors-headers==2.2.0
django-money==0.14
django==2.0.3
djangorestframework==3.8.2
gunicorn==19.8.1
model-mommy==1.6.0
more-itertools==4.2.0 # via pytest
pluggy==0.6.0 # via pytest
py-moneyed==0.7.0 # via django-money
py==1.5.3 # via pytest
pytest-django==3.3.2
pytest==3.6.2
pytz==2018.4 # via django
six==1.11.0 # via model-mommy, more-itertools, pytest
black
# The following packages are considered to be unsafe in a requirements file:
# setuptools==41.1.0 # via django-money, pytest