Add linting and static analysis CI

This commit is contained in:
Marty Oehme 2023-08-29 09:55:08 +02:00
parent c6b95a4742
commit 6f2bab8225
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 24 additions and 0 deletions

16
.woodpecker/lint.yml Normal file
View 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 .

View 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