Skip to content

Commit

Permalink
black and isort in separate venv
Browse files Browse the repository at this point in the history
as suggested in #251 (comment)
  • Loading branch information
Chilipp committed Nov 9, 2020
1 parent cc25f69 commit 6a2397c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/lint.sh
Expand Up @@ -2,6 +2,15 @@

set -e

python -m venv lint
source lint/bin/activate

pip install black==19.10b0 "isort>=4.3.21,<5.0"

black --check datamodel_code_generator tests
isort --recursive --check-only datamodel_code_generator tests
isort --check-only datamodel_code_generator tests

deactivate
rm -r lint

mypy datamodel_code_generator

0 comments on commit 6a2397c

Please sign in to comment.