🚧 Install dependencies before running the linters
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
This commit is contained in:
@@ -10,12 +10,10 @@ steps:
|
|||||||
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
|
secrets: ["reviewdog_gitea_api_token", "gitea_address"]
|
||||||
commands: |
|
commands: |
|
||||||
cd backend
|
cd backend
|
||||||
env
|
|
||||||
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
|
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
|
||||||
pip install ruff
|
pip install poetry
|
||||||
ruff --output-format sarif . > /tmp/ruff.log
|
poetry install --with=linters
|
||||||
cat /tmp/ruff.log
|
ruff --output-format sarif . | ./bin/reviewdog -f sarif -reporter gitea-pr-review
|
||||||
cat /tmp/ruff.log | ./bin/reviewdog -f sarif -reporter gitea-pr-review
|
|
||||||
|
|
||||||
- name: mypy
|
- name: mypy
|
||||||
image: python:3.12-alpine
|
image: python:3.12-alpine
|
||||||
@@ -24,5 +22,6 @@ steps:
|
|||||||
commands: |
|
commands: |
|
||||||
cd backend
|
cd backend
|
||||||
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
|
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s latest
|
||||||
pip install mypy
|
pip install poetry
|
||||||
|
poetry install --with=linters
|
||||||
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review
|
mypy . | ./bin/reviewdog -f mypy -reporter gitea-pr-review
|
||||||
|
@@ -49,27 +49,32 @@ pydantic-settings = "^2.0.3"
|
|||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
pylsp-mypy = "^0.6.2"
|
pylsp-mypy = "^0.6.2"
|
||||||
mccabe = "^0.7.0"
|
|
||||||
rope = "^1.3.0"
|
|
||||||
python-lsp-black = "^1.2.1"
|
python-lsp-black = "^1.2.1"
|
||||||
black = "^22.10.0"
|
|
||||||
types-aiofiles = "^22.1.0.2"
|
|
||||||
wrapt = "^1.14.1"
|
wrapt = "^1.14.1"
|
||||||
pydocstyle = "^6.2.2"
|
|
||||||
dill = "^0.3.6"
|
dill = "^0.3.6"
|
||||||
python-lsp-ruff = "^1.0.5"
|
python-lsp-ruff = "^1.0.5"
|
||||||
python-lsp-server = "^1.7.1"
|
python-lsp-server = "^1.7.1"
|
||||||
autopep8 = "^2.0.1"
|
|
||||||
pyflakes = "^3.0.1"
|
|
||||||
yapf = "^0.32.0"
|
|
||||||
whatthepatch = "^1.0.4"
|
|
||||||
mypy = "^1.0.0"
|
|
||||||
icecream = "^2.1.3"
|
icecream = "^2.1.3"
|
||||||
|
|
||||||
|
|
||||||
|
[tool.poetry.group.linters.dependencies]
|
||||||
|
autopep8 = "^2.0.1"
|
||||||
|
black = "^22.10.0"
|
||||||
|
mccabe = "^0.7.0"
|
||||||
|
mypy = "^1.0.0"
|
||||||
|
pydocstyle = "^6.2.2"
|
||||||
|
pyflakes = "^3.0.1"
|
||||||
|
rope = "^1.3.0"
|
||||||
|
ruff = "^0.2.1"
|
||||||
|
types-aiofiles = "^22.1.0.2"
|
||||||
types-sqlalchemy-utils = "^1.0.1"
|
types-sqlalchemy-utils = "^1.0.1"
|
||||||
types-pyyaml = "^6.0.12.9"
|
types-pyyaml = "^6.0.12.9"
|
||||||
types-tqdm = "^4.65.0.1"
|
types-tqdm = "^4.65.0.1"
|
||||||
|
whatthepatch = "^1.0.4"
|
||||||
|
yapf = "^0.32.0"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
plugins = "sqlalchemy.ext.mypy.plugin"
|
plugins = "sqlalchemy.ext.mypy.plugin"
|
||||||
|
Reference in New Issue
Block a user