lint pipe fixes
This commit is contained in:
@@ -10,24 +10,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install flake8 black isort # можно добавить pylint, mypy и др.
|
- pip install flake8 black isort # можно добавить pylint, mypy и др.
|
||||||
|
|
||||||
- name: flake8
|
|
||||||
image: python:3.11-slim
|
|
||||||
commands:
|
|
||||||
- flake8 . --max-line-length=120 --exclude=.venv,venv,__pycache__
|
- flake8 . --max-line-length=120 --exclude=.venv,venv,__pycache__
|
||||||
|
|
||||||
- name: black
|
|
||||||
image: python:3.11-slim
|
|
||||||
commands:
|
|
||||||
- black --check --diff .
|
- black --check --diff .
|
||||||
|
|
||||||
- name: isort
|
|
||||||
image: python:3.11-slim
|
|
||||||
commands:
|
|
||||||
- isort --check-only --diff .
|
- isort --check-only --diff .
|
||||||
|
|
||||||
- name: mypy
|
|
||||||
image: python:3.11-slim
|
|
||||||
commands:
|
|
||||||
- pip install mypy
|
- pip install mypy
|
||||||
- mypy .
|
- mypy .
|
||||||
|
|||||||
Reference in New Issue
Block a user