File tree Expand file tree Collapse file tree 3 files changed +27
-11
lines changed Expand file tree Collapse file tree 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 22
33pip install --upgrade pip
44pip 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
105pip 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 =
99deps =
1010 -r requirements-dev.txt
1111commands =
12- flake8 . --exclude =" ./.*, venv "
12+ flake8 --exclude =" venv/,.tox/ " patterns/
1313 ; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
1414 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/
1616
1717
1818[testenv:cov-report]
You can’t perform that action at this time.
0 commit comments