Skip to content

Commit 0b74c68

Browse files
authored
Merge branch 'develop' into 1210_add-gzipreader
2 parents 57a955e + 2807da1 commit 0b74c68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+694
-391
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,40 @@ jobs:
3939
with:
4040
fail_ci_if_error: true
4141

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+
run: |
57+
mypy --python-version 3.7 .
58+
- name: mypy 3.8
59+
run: |
60+
mypy --python-version 3.8 .
61+
- name: mypy 3.9
62+
run: |
63+
mypy --python-version 3.9 .
64+
- name: mypy 3.10
65+
run: |
66+
mypy --python-version 3.10 .
67+
- name: pylint
68+
run: |
69+
pylint --rcfile=.pylintrc \
70+
can/**.py \
71+
setup.py \
72+
doc.conf \
73+
scripts/**.py \
74+
examples/**.py
75+
4276
format:
4377
runs-on: ubuntu-latest
4478
steps:

.travis.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,6 @@ jobs:
7474
# -a Write all files
7575
# -n nitpicky
7676
- 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
9477
- stage: deploy
9578
name: "PyPi Deployment"
9679
python: "3.9"

0 commit comments

Comments
 (0)