File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : lint_python
2
+ on : [pull_request, push]
3
+ jobs :
4
+ lint_python :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+ - uses : actions/setup-python@v2
9
+ - run : pip install bandit black codespell flake8 isort pytest pyupgrade tox
10
+ - run : bandit -r . || true
11
+ - run : black --check . || true
12
+ - run : codespell --quiet-level=2 || true # --ignore-words-list="" --skip=""
13
+ - run : flake8 . --count --show-source --statistics
14
+ - run : isort --profile black . || true
15
+ - run : tox
16
+ - run : pip install -r requirements.txt || true
17
+ - run : pytest . || true
18
+ - run : pytest --doctest-modules . || true
19
+ - run : shopt -s globstar && pyupgrade --py36-plus **/*.py || true
Original file line number Diff line number Diff line change 1
1
[tox]
2
- envlist = py37,py39,cov-report
2
+ envlist = py37,py38,py39,cov-report
3
+ skip_missing_interpreters = true
3
4
4
5
5
6
[testenv]
8
9
deps =
9
10
-r requirements-dev.txt
10
11
commands =
11
- flake8 patterns/
12
+ flake8 . -- exclude =./.*
12
13
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
13
14
pytest --randomly-seed =1234 --doctest-modules patterns/
14
15
pytest -s -vv --cov ={envsitepackagesdir}/patterns --log-level =INFO tests/
You can’t perform that action at this time.
0 commit comments