File tree Expand file tree Collapse file tree 4 files changed +41
-18
lines changed Expand file tree Collapse file tree 4 files changed +41
-18
lines changed Original file line number Diff line number Diff line change 39
39
with :
40
40
fail_ci_if_error : true
41
41
42
+ static-code-analysis :
43
+ runs-on : ubuntu-latest
44
+ steps :
45
+ - uses : actions/checkout@v2
46
+ - name : Set up Python
47
+ uses : actions/setup-python@v2
48
+ with :
49
+ python-version : " 3.10"
50
+ - name : Install dependencies
51
+ run : |
52
+ python -m pip install --upgrade pip
53
+ pip install -e .
54
+ pip install -r requirements-lint.txt
55
+ - name : mypy 3.7
56
+ continue-on-error : true
57
+ run : |
58
+ mypy --python-version 3.7 .
59
+ - name : mypy 3.8
60
+ continue-on-error : true
61
+ run : |
62
+ mypy --python-version 3.8 .
63
+ - name : mypy 3.9
64
+ continue-on-error : true
65
+ run : |
66
+ mypy --python-version 3.9 .
67
+ - name : mypy 3.10
68
+ continue-on-error : true
69
+ run : |
70
+ mypy --python-version 3.10 .
71
+ - name : pylint
72
+ continue-on-error : true
73
+ run : |
74
+ pylint --rcfile=.pylintrc \
75
+ can/**.py \
76
+ setup.py \
77
+ doc.conf \
78
+ scripts/**.py \
79
+ examples/**.py
80
+
42
81
format :
43
82
runs-on : ubuntu-latest
44
83
steps :
Original file line number Diff line number Diff line change 74
74
# -a Write all files
75
75
# -n nitpicky
76
76
- python -m sphinx -an doc build
77
- - stage : linter
78
- name : " Linter Checks"
79
- python : " 3.9"
80
- before_install :
81
- - travis_retry pip install -r requirements-lint.txt
82
- script :
83
- # -------------
84
- # pylint checking:
85
- # check the entire main codebase (except the tests)
86
- - pylint --rcfile=.pylintrc can/**.py setup.py doc.conf scripts/**.py examples/**.py
87
- # -------------
88
- # mypy checking:
89
- - mypy
90
- can/*.py
91
- can/io/**.py
92
- scripts/**.py
93
- examples/**.py
94
77
- stage : deploy
95
78
name : " PyPi Deployment"
96
79
python : " 3.9"
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ pylint==2.12.2
2
2
black==21.12b0
3
3
mypy==0.931
4
4
mypy-extensions==0.4.3
5
+ types-setuptools
Original file line number Diff line number Diff line change 2
2
license_file = LICENSE.txt
3
3
4
4
[mypy]
5
- python_version = 3.7
6
5
warn_return_any = True
7
6
warn_unused_configs = True
8
7
ignore_missing_imports = True
9
8
no_implicit_optional = True
10
9
disallow_incomplete_defs = True
11
10
warn_redundant_casts = True
12
11
warn_unused_ignores = True
12
+ exclude = (^venv|^test|^can/interfaces|^setup.py$)
You can’t perform that action at this time.
0 commit comments