Skip to content

Commit 86b411a

Browse files
committed
Update template settings
- ignore shared-venv for internal package testing. - ignore flake8-bugbear rule B905 as we still need to support python 3.9 and below - Move package build into tox's begin stage
1 parent bb1de48 commit 86b411a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
*.egg-info
22
*.pyc
3+
*.sublime-project
4+
*.sublime-workspace
35
*.swp
46
.coverage
57
.DS_Store
@@ -13,3 +15,4 @@ dist/
1315
htmlcov/
1416
venv/
1517
version.py
18+
shared-venv

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ extend-ignore =
6464
E501,
6565
E722,
6666
W503,
67+
B905,
6768
max-line-length = 80
6869
exclude =
6970
*.egg-info
@@ -75,3 +76,5 @@ exclude =
7576
__pycache__
7677
build
7778
dist
79+
docs
80+
shared-venv

tox.ini

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ deps =
1414
coverage
1515
pytest
1616
commands =
17-
# Ensure the version.py file is created
18-
python setup.py egg_info
19-
2017
coverage run --append -m pytest {posargs:tests/}
2118

2219
[testenv:begin]
2320
basepython = python3
2421
deps =
2522
coverage
26-
commands = coverage erase
23+
commands =
24+
# Ensure the version.py file is created
25+
python setup.py egg_info
26+
# Reset all coverage line history so the other tests accurately report missing
27+
coverage erase
2728

2829
[testenv:end]
2930
basepython = python3

0 commit comments

Comments
 (0)