-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (68 loc) · 2.06 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Lint
on:
push:
branches: [ "main" ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Pre-commit checks
strategy:
fail-fast: false
matrix:
# linter: [
# "pylint",
# "pycodestyle",
# "flake8",
# "mypy",
# "isort"
# ]
# package: [
# "as2fm_common",
# "jani_generator",
# "jani_visualizer",
# "scxml_converter",
# "trace_visualizer"
# ]
include:
# (for humble):
- python-version: "3.10"
# os: "ubuntu-latest"
runs-on: ubuntu-latest
steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Berlin"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
pip install --upgrade pip
pip install setuptools_rust
- name: Install packages
run: |
pip install .
# - uses: marian-code/python-lint-annotate@v4
# with:
# python-root-list: src/${{ matrix.package }}
# python-version: ${{ matrix.python-version }}
# use-pylint: ${{ matrix.linter == 'pylint' }}
# use-pycodestyle: ${{ matrix.linter == 'pycodestyle' }}
# use-flake8: ${{ matrix.linter == 'flake8' }}
# use-black: false
# use-mypy: ${{ matrix.linter == 'mypy' }}
# use-isort: ${{ matrix.linter == 'isort' }}
# use-vulture: false
# use-pydocstyle: false
# extra-pylint-options: ""
# extra-pycodestyle-options: ""
# extra-flake8-options: "--max-line-length=100"
# extra-black-options: ""
# extra-mypy-options: "--ignore-missing-imports"
# extra-isort-options: ""
- name: Pre-commit
uses: pre-commit/[email protected]