2021-05-09 15:05:32 +03:00
|
|
|
# CI for code style and application tests
|
|
|
|
|
|
|
|
name: test-code
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
2021-05-09 15:56:15 +03:00
|
|
|
lint-python-code:
|
2023-02-07 19:29:37 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2021-05-09 15:56:15 +03:00
|
|
|
steps:
|
2023-02-07 19:29:37 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-09 15:56:15 +03:00
|
|
|
- uses: ricardochaves/python-lint@v1.4.0
|
2021-05-09 15:05:32 +03:00
|
|
|
with:
|
2021-05-09 15:56:15 +03:00
|
|
|
python-root-list: "moonraker scripts"
|
|
|
|
use-pylint: false
|
|
|
|
use-pycodestyle: true
|
|
|
|
use-flake8: false
|
|
|
|
use-black: false
|
2021-05-19 14:34:05 +03:00
|
|
|
use-mypy: true
|
2021-05-09 15:56:15 +03:00
|
|
|
use-isort: false
|
2023-02-11 15:55:08 +03:00
|
|
|
extra-pycodestyle-options: "--ignore=E226,E301,E302,E303,W503,W504 --max-line-length=88 --max-doc-length=88"
|
2021-05-19 14:34:05 +03:00
|
|
|
extra-mypy-options: "--ignore-missing-imports --follow-imports=silent"
|