mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-03 18:40:41 +02:00
ci: added isort to pre-commit and ci
This commit is contained in:
parent
284c6c47a1
commit
36d5cef4ef
@ -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')
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user