diff --git a/.woodpecker/linting.yml b/.woodpecker/linting.yml new file mode 100644 index 0000000..25dc004 --- /dev/null +++ b/.woodpecker/linting.yml @@ -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 . diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4cfa78c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,4 @@ +[tool.pyright] +#https://github.com/microsoft/pyright/blob/main/docs/configuration.md +typeCheckingMode = "strict" +reportUnusedImport = "warning"