Skip to content

Commit f92a056

Browse files
authored
Merge branch 'develop' into ixxat
2 parents 3a021a7 + 8c4ed5f commit f92a056

File tree

154 files changed

+7088
-1918
lines changed

Some content is hidden

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

154 files changed

+7088
-1918
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git* export-ignore
2+
.*.yml export-ignore

.github/workflows/build.yml

+88-16
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
experimental: [false]
16-
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy-3.7"]
17-
include:
18-
# Skipping Py 3.10 on Windows until windows-curses has a cp310 wheel,
19-
# see https://github.com/zephyrproject-rtos/windows-curses/issues/26
20-
- os: ubuntu-latest
21-
experimental: false
22-
python-version: "3.10"
23-
- os: macos-latest
24-
experimental: false
25-
python-version: "3.10"
16+
python-version: [
17+
"3.7",
18+
"3.8",
19+
"3.9",
20+
"3.10",
21+
"3.11",
22+
"pypy-3.7",
23+
"pypy-3.8",
24+
"pypy-3.9",
25+
]
2626
fail-fast: false
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v2
30+
uses: actions/setup-python@v4
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333
- name: Install dependencies
@@ -38,16 +38,53 @@ jobs:
3838
run: |
3939
tox -e gh
4040
- name: Upload coverage to Codecov
41-
uses: codecov/codecov-action@v1
41+
uses: codecov/codecov-action@v3
4242
with:
4343
fail_ci_if_error: true
4444

45+
static-code-analysis:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Set up Python
50+
uses: actions/setup-python@v4
51+
with:
52+
python-version: "3.10"
53+
- name: Install dependencies
54+
run: |
55+
python -m pip install --upgrade pip
56+
pip install -e .
57+
pip install -r requirements-lint.txt
58+
- name: mypy 3.7
59+
run: |
60+
mypy --python-version 3.7 .
61+
- name: mypy 3.8
62+
run: |
63+
mypy --python-version 3.8 .
64+
- name: mypy 3.9
65+
run: |
66+
mypy --python-version 3.9 .
67+
- name: mypy 3.10
68+
run: |
69+
mypy --python-version 3.10 .
70+
- name: mypy 3.11
71+
run: |
72+
mypy --python-version 3.11 .
73+
- name: pylint
74+
run: |
75+
pylint --rcfile=.pylintrc \
76+
can/**.py \
77+
setup.py \
78+
doc.conf \
79+
scripts/**.py \
80+
examples/**.py
81+
4582
format:
4683
runs-on: ubuntu-latest
4784
steps:
48-
- uses: actions/checkout@v2
49-
- name: Set up Python 3.10
50-
uses: actions/setup-python@v2
85+
- uses: actions/checkout@v3
86+
- name: Set up Python
87+
uses: actions/setup-python@v4
5188
with:
5289
python-version: "3.10"
5390
- name: Install dependencies
@@ -57,3 +94,38 @@ jobs:
5794
- name: Code Format Check with Black
5895
run: |
5996
black --check --verbose .
97+
98+
docs:
99+
runs-on: ubuntu-latest
100+
steps:
101+
- uses: actions/checkout@v3
102+
- name: Set up Python
103+
uses: actions/setup-python@v4
104+
with:
105+
python-version: "3.10"
106+
- name: Install dependencies
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install -e .[canalystii,gs_usb]
110+
pip install -r doc/doc-requirements.txt
111+
- name: Build documentation
112+
run: |
113+
python -m sphinx -an doc build
114+
- uses: actions/upload-artifact@v3
115+
with:
116+
name: sphinx-out
117+
path: ./build/
118+
retention-days: 5
119+
120+
build:
121+
runs-on: ubuntu-latest
122+
steps:
123+
- uses: actions/checkout@v3
124+
- name: Set up Python
125+
uses: actions/setup-python@v4
126+
with:
127+
python-version: "3.10"
128+
- name: Build wheel and sdist
129+
run: pipx run build
130+
- name: Check build artifacts
131+
run: pipx run twine check --strict dist/*

.github/workflows/format-code.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Set up Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
16-
python-version: 3.9
16+
python-version: "3.10"
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
@@ -22,10 +22,7 @@ jobs:
2222
run: |
2323
black --verbose .
2424
- name: Commit Formated Code
25-
uses: EndBug/add-and-commit@v5
26-
env:
27-
# This is necessary in order to push a commit to the repo
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
uses: EndBug/add-and-commit@v9
2926
with:
3027
message: "Format code with black"
3128
# Ref https://git-scm.com/docs/git-add#_examples

.mergify.yml

-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ pull_request_rules:
1818
queue:
1919
name: default
2020

21-
- name: Request Brian to review changes to the core API
22-
conditions:
23-
- "-files~=^can/interfaces/$"
24-
- "-closed"
25-
- "author!=hardbyte"
26-
actions:
27-
request_reviews:
28-
users:
29-
- hardbyte
30-
3121
- name: Delete head branch after merge
3222
conditions:
3323
- merged

.readthedocs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.10"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: doc/conf.py
17+
18+
# If using Sphinx, optionally build your docs in additional formats such as PDF
19+
formats:
20+
- pdf
21+
- epub
22+
23+
# Optionally declare the Python requirements required to build your docs
24+
python:
25+
install:
26+
- requirements: doc/doc-requirements.txt
27+
- method: pip
28+
path: .
29+
extra_requirements:
30+
- canalystii
31+
- gs_usb

.travis.yml

-17
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)