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:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- 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
|
|
|
|
extra-pycodestyle-options: "--ignore=E226,E301,E302,E303,W503,W504 --max-line-length=80 --max-doc-length=80"
|
2021-05-19 14:34:05 +03:00
|
|
|
extra-mypy-options: "--ignore-missing-imports --follow-imports=silent"
|