Skip to content

Commit

Permalink
Use isort 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Jul 6, 2020
1 parent 30be7ba commit 2d35606
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ force_grid_wrap=0
use_parentheses=True
line_length=88
lines_after_imports=2
not_skip=__init__.py
skip=newdle/client/node_modules
known_third_party=exchangelib
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ newdb:
@${FLASK} db migrate -m 'Create initial tables' --rev-id 000000000000
@sed -i -e '/^Revises: $$/d' newdle/migrations/versions/????????_????_000000000000_create_initial_tables.py
@sed -i -e '/^ # ### /d' newdle/migrations/versions/????????_????_000000000000_create_initial_tables.py
@${VENV}/bin/isort --recursive newdle/migrations/versions/
@${VENV}/bin/isort newdle/migrations/versions/
@${VENV}/bin/black newdle/migrations/versions/
@git add newdle/migrations/versions/????????_????_000000000000_create_initial_tables.py
@${FLASK} db upgrade head
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"prettier": "prettier --write 'newdle/client/src/**/*.{js,jsx,json,scss,css}'",
"prettier:check": "prettier --check 'newdle/client/src/**/*.{js,jsx,json,scss,css}'",
"isort": "isort --recursive setup.py conftest.py newdle/ tests/",
"isort": "isort setup.py conftest.py newdle/ tests/",
"isort:check": "npm run isort -- --diff --check-only",
"black": "black setup.py conftest.py newdle/ tests/",
"black:check": "npm run black -- --diff --check",
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ black
flake8
flask-shell-ipython
ipython
isort
isort>=5.0.3
pycodestyle
pytest
pytest-cov
Expand Down

0 comments on commit 2d35606

Please sign in to comment.