File tree 3 files changed +27
-11
lines changed
3 files changed +27
-11
lines changed Original file line number Diff line number Diff line change
1
+ __pycache__
2
+ *.pyc
3
+ .idea
4
+ *.egg-info/
5
+ .tox/
6
+ env/
7
+ venv/
8
+ .env
9
+ .venv
10
+ .vscode/
11
+ .python-version
12
+ .coverage
13
+ build/
14
+ dist/
Original file line number Diff line number Diff line change 2
2
3
3
pip install --upgrade pip
4
4
pip install black codespell flake8 isort mypy pytest pyupgrade tox
5
- black --check .
6
- codespell --quiet-level=2 # --ignore-words-list="" --skip=""
7
- flake8 . --count --show-source --statistics
8
- isort --profile black .
9
- tox
10
5
pip install -e .
11
- mypy --ignore-missing-imports . || true
12
- pytest .
13
- pytest --doctest-modules . || true
14
- shopt -s globstar && pyupgrade --py37-plus ** /* .py
6
+
7
+ source_dir=" ./patterns"
8
+
9
+ codespell --quiet-level=2 ./patterns # --ignore-words-list="" --skip=""
10
+ flake8 " ${source_dir} " --count --show-source --statistics
11
+ isort --profile black " ${source_dir} "
12
+ tox
13
+ mypy --ignore-missing-imports " ${source_dir} " || true
14
+ pytest " ${source_dir} "
15
+ pytest --doctest-modules " ${source_dir} " || true
16
+ shopt -s globstar && pyupgrade --py37-plus ${source_dir} /* .py
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ setenv =
9
9
deps =
10
10
-r requirements-dev.txt
11
11
commands =
12
- flake8 . --exclude =" ./.*, venv "
12
+ flake8 --exclude =" venv/,.tox/ " patterns/
13
13
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
14
14
pytest --randomly-seed =1234 --doctest-modules patterns/
15
- pytest -s -vv --cov ={envsitepackagesdir}/ patterns --log-level =INFO tests/
15
+ pytest -s -vv --cov =patterns/ --log-level =INFO tests/
16
16
17
17
18
18
[testenv:cov-report]
You can’t perform that action at this time.
0 commit comments