Add linting and static analysis CI
This commit is contained in:
parent
c6b95a4742
commit
6f2bab8225
2 changed files with 24 additions and 0 deletions
16
.woodpecker/lint.yml
Normal file
16
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
steps:
|
||||
lint_ruff:
|
||||
image: python
|
||||
commands:
|
||||
- pip install ruff
|
||||
- python --version && poetry --version && ruff --version
|
||||
- echo "----------------- running ruff lint ------------------"
|
||||
- ruff check .
|
||||
|
||||
lint_black:
|
||||
image: python
|
||||
commands:
|
||||
- pip install black
|
||||
- python --version && poetry --version && black --version
|
||||
- echo "----------------- running black lint ----------------"
|
||||
- black --check .
|
8
.woodpecker/static_analysis.yml
Normal file
8
.woodpecker/static_analysis.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
steps:
|
||||
pyright:
|
||||
image: ghcr.io/withlogicco/poetry:1.5.1
|
||||
commands:
|
||||
- pip install pyright
|
||||
- python --version && poetry --version && pyright --version
|
||||
- echo "------------- running pyright typecheck -------------"
|
||||
- poetry run pyright
|
Loading…
Reference in a new issue