Format code with black
This commit is contained in:
parent
405ddaec60
commit
800055a5ea
@ -16,8 +16,6 @@ matrix:
|
||||
- pip install --upgrade .[big_mode]
|
||||
- pip freeze
|
||||
script:
|
||||
- flake8 openslides tests
|
||||
- isort --check-only --diff --recursive openslides tests
|
||||
- python -m mypy openslides/ tests/
|
||||
- python -W ignore -m pytest --cov --cov-fail-under=70
|
||||
|
||||
@ -36,6 +34,7 @@ matrix:
|
||||
script:
|
||||
- flake8 openslides tests
|
||||
- isort --check-only --diff --recursive openslides tests
|
||||
- black --check --diff --py36 openslides tests
|
||||
- python -m mypy openslides/ tests/
|
||||
- python -W ignore -m pytest --cov --cov-fail-under=70
|
||||
|
||||
|
@ -65,7 +65,7 @@ def min_requirements(args=None):
|
||||
print(' '.join(get_lowest_versions(args.requirements)))
|
||||
|
||||
|
||||
@command('clear',
|
||||
@command('clean',
|
||||
help='Deletes unneeded files and folders')
|
||||
def clean(args=None):
|
||||
"""
|
||||
@ -76,7 +76,8 @@ def clean(args=None):
|
||||
call('find -type d -empty -delete')
|
||||
|
||||
|
||||
@command('isort',
|
||||
help='Sorts all imports in all python files.')
|
||||
@command('format',
|
||||
help='Format code with isort and black')
|
||||
def isort(args=None):
|
||||
return call('isort --recursive openslides tests')
|
||||
call('isort --recursive openslides tests')
|
||||
call('black --py36 openslides tests')
|
||||
|
@ -1,3 +1,4 @@
|
||||
black
|
||||
coverage
|
||||
flake8
|
||||
isort
|
||||
|
Loading…
Reference in New Issue
Block a user