ci: added isort to pre-commit and ci

This commit is contained in:
wakonig_k 2024-03-28 16:38:49 +01:00
parent 284c6c47a1
commit 36d5cef4ef
2 changed files with 5 additions and 3 deletions

View File

@ -1,2 +1,3 @@
black --line-length=100 $(git diff --cached --name-only --diff-filter=ACM)
git add $(git diff --cached --name-only --diff-filter=ACM)
black --line-length=100 $(git diff --cached --name-only --diff-filter=ACM -- '*.py')
isort --line-length=100 --profile=black --multi-line=3 --trailing-comma $(git diff --cached --name-only --diff-filter=ACM -- '*.py')
git add $(git diff --cached --name-only --diff-filter=ACM -- '*.py')

View File

@ -32,7 +32,8 @@ stages:
formatter:
stage: Formatter
script:
- pip install black
- pip install black isort
- isort --check --diff --line-length=100 --profile=black --multi-line=3 --trailing-comma ./
- black --check --diff --color --line-length=100 ./
pylint: