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
|
2023-06-25 14:44:03 +03:00
|
|
|
- uses: weibullguy/python-lint-plus@v1.12.0
|
2021-05-09 15:05:32 +03:00
|
|
|
with:
|
2021-05-09 15:56:15 +03:00
|
|
|
python-root-list: "moonraker scripts"
|
2023-06-25 14:44:03 +03:00
|
|
|
virtual-env: "python-lint-plus"
|
|
|
|
python-version: "3.10"
|
2021-05-09 15:56:15 +03:00
|
|
|
use-pycodestyle: true
|
|
|
|
use-black: false
|
2021-05-19 14:34:05 +03:00
|
|
|
use-mypy: true
|
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"
|