File tree 2 files changed +23
-6
lines changed
2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 8
8
- uses : actions/setup-python@v4
9
9
with :
10
10
python-version : 3.12
11
- - shell : bash
12
- name : Lint and test
13
- run : ./lint.sh
11
+ - name : Install dependencies
12
+ run : |
13
+ python -m pip install --upgrade pip
14
+ pip install -r requirements-dev.txt
15
+ - name : Lint with flake8
16
+ run : flake8 ./patterns --count --show-source --statistics
17
+ - name : Format check with isort and black
18
+ run : |
19
+ isort --profile black --check ./patterns
20
+ black --check ./patterns
21
+ - name : Type check with mypy
22
+ run : mypy --ignore-missing-imports ./patterns || true
23
+ - name : Run tests with pytest
24
+ run : |
25
+ pytest ./patterns
26
+ pytest --doctest-modules ./patterns || true
27
+ - name : Check Python version compatibility
28
+ run : shopt -s globstar && pyupgrade --py312-plus ./patterns/**/*.py
29
+ - name : Run tox
30
+ run : tox
Original file line number Diff line number Diff line change 1
- -e .
2
-
1
+ mypy
2
+ pyupgrade
3
3
pytest >= 6.2.0
4
4
pytest-cov >= 2.11.0
5
5
pytest-randomly >= 3.1.0
6
6
black >= 25.1.0
7
7
isort >= 5.7.0
8
- flake8 >= 7.2 .0
8
+ flake8 >= 7.1 .0
9
9
tox >= 4.25.0
You can’t perform that action at this time.
0 commit comments