Add CI and pyright settings
Some checks failed
ci/woodpecker/push/linting Pipeline failed

This commit is contained in:
RealStickman 2022-10-24 20:20:07 +02:00
parent e5b2043298
commit 4ffb502c89
2 changed files with 21 additions and 0 deletions

17
.woodpecker/linting.yml Normal file
View File

@ -0,0 +1,17 @@
# https://woodpecker-ci.org/docs/usage/pipeline-syntax
pipeline:
typecheck:
image: python:latest
group: linting
commands:
- python --version
- pip install -U pyright --quiet
- pyright
format:
image: python:latest
group: linting
commands:
- python --version
- pip install -U black --quiet
- black --check --diff --color --verbose .

4
pyproject.toml Normal file
View File

@ -0,0 +1,4 @@
[tool.pyright]
#https://github.com/microsoft/pyright/blob/main/docs/configuration.md
typeCheckingMode = "strict"
reportUnusedImport = "warning"