Flake8 as separate CI check (#1037)
This commit is contained in:
Родитель
d98cc4fa11
Коммит
de2229c087
|
@ -41,6 +41,9 @@ jobs:
|
|||
- run:
|
||||
name: PyTest with linters
|
||||
command: venv/bin/pytest
|
||||
- run:
|
||||
name: Flake8
|
||||
command: venv/bin/flake8 generator
|
||||
- run:
|
||||
name: Lint YAML
|
||||
command: venv/bin/yamllint -c .yamllint.yaml .
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[pytest]
|
||||
addopts =
|
||||
--black
|
||||
--flake8
|
||||
--isort
|
||||
--mypy-ignore-missing-imports
|
||||
--pydocstyle
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
click==8.1.7
|
||||
flake8<5 # pytest-flake8 does not support flake8 5+
|
||||
flake8==7.1.1
|
||||
exceptiongroup # for pytest on python<=3.10
|
||||
google-cloud-bigquery==3.25.0
|
||||
google-cloud-storage==2.18.2
|
||||
|
@ -14,7 +14,6 @@ pip-tools==7.4.1
|
|||
pre-commit==3.8.0
|
||||
pyarrow==17.0.0
|
||||
pytest-black==0.3.12
|
||||
pytest-flake8==1.1.1
|
||||
pytest-isort==4.0.0
|
||||
pytest-mypy==0.10.3
|
||||
pytest-pydocstyle==2.3.2
|
||||
|
|
|
@ -167,12 +167,10 @@ filelock==3.12.3 \
|
|||
# via
|
||||
# pytest-mypy
|
||||
# virtualenv
|
||||
flake8==4.0.1 \
|
||||
--hash=sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d \
|
||||
--hash=sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d
|
||||
# via
|
||||
# -r requirements.in
|
||||
# pytest-flake8
|
||||
flake8==7.1.1 \
|
||||
--hash=sha256:049d058491e228e03e67b390f311bbf88fce2dbaa8fa673e7aea87b7198b8d38 \
|
||||
--hash=sha256:597477df7860daa5aa0fdd84bf5208a043ab96b8e96ab708770ae0364dd03213
|
||||
# via -r requirements.in
|
||||
gitdb==4.0.10 \
|
||||
--hash=sha256:6eb990b69df4e15bad899ea868dc46572c3f75339735663b81de79b06f17eb9a \
|
||||
--hash=sha256:c286cf298426064079ed96a9e4a9d39e7f3e9bf15ba60701e95f5492f28415c7
|
||||
|
@ -449,9 +447,9 @@ markupsafe==2.1.3 \
|
|||
--hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \
|
||||
--hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2
|
||||
# via jinja2
|
||||
mccabe==0.6.1 \
|
||||
--hash=sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42 \
|
||||
--hash=sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f
|
||||
mccabe==0.7.0 \
|
||||
--hash=sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325 \
|
||||
--hash=sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e
|
||||
# via flake8
|
||||
mozilla-metric-config-parser==2024.7.1 \
|
||||
--hash=sha256:07ba32624cb9a38662bdff259dd4ec385bdc8ca4500b461d8a9025a736a25c6b \
|
||||
|
@ -665,9 +663,9 @@ pyasn1-modules==0.3.0 \
|
|||
--hash=sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \
|
||||
--hash=sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d
|
||||
# via google-auth
|
||||
pycodestyle==2.8.0 \
|
||||
--hash=sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20 \
|
||||
--hash=sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f
|
||||
pycodestyle==2.12.1 \
|
||||
--hash=sha256:46f0fb92069a7c28ab7bb558f05bfc0110dac69a0cd23c61ea0040283a9d78b3 \
|
||||
--hash=sha256:6838eae08bbce4f6accd5d5572075c63626a15ee3e6f842df996bf62f6d73521
|
||||
# via flake8
|
||||
pydantic==1.10.13 \
|
||||
--hash=sha256:1740068fd8e2ef6eb27a20e5651df000978edce6da6803c2bef0bc74540f9548 \
|
||||
|
@ -711,9 +709,9 @@ pydocstyle==6.3.0 \
|
|||
--hash=sha256:118762d452a49d6b05e194ef344a55822987a462831ade91ec5c06fd2169d019 \
|
||||
--hash=sha256:7ce43f0c0ac87b07494eb9c0b462c0b73e6ff276807f204d6b53edc72b7e44e1
|
||||
# via pytest-pydocstyle
|
||||
pyflakes==2.4.0 \
|
||||
--hash=sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c \
|
||||
--hash=sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e
|
||||
pyflakes==3.2.0 \
|
||||
--hash=sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f \
|
||||
--hash=sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a
|
||||
# via flake8
|
||||
pyproject-hooks==1.0.0 \
|
||||
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
|
||||
|
@ -727,17 +725,12 @@ pytest==7.4.4 \
|
|||
# via
|
||||
# -r requirements.in
|
||||
# pytest-black
|
||||
# pytest-flake8
|
||||
# pytest-isort
|
||||
# pytest-mypy
|
||||
# pytest-pydocstyle
|
||||
pytest-black==0.3.12 \
|
||||
--hash=sha256:1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5
|
||||
# via -r requirements.in
|
||||
pytest-flake8==1.1.1 \
|
||||
--hash=sha256:ba4f243de3cb4c2486ed9e70752c80dd4b636f7ccb27d4eba763c35ed0cd316e \
|
||||
--hash=sha256:e0661a786f8cbf976c185f706fdaf5d6df0b1667c3bcff8e823ba263618627e7
|
||||
# via -r requirements.in
|
||||
pytest-isort==4.0.0 \
|
||||
--hash=sha256:00e99642e282b00b849cf9b49d9102a02ab8c4ec549ace57d7868b723713aaa9 \
|
||||
--hash=sha256:14bb3281bab587d6beb53129481e8885232249ec5cfeaf5d903a561ff0589620
|
||||
|
|
Загрузка…
Ссылка в новой задаче