Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	tox.ini
  • Loading branch information
jaraco committed Apr 3, 2023
2 parents 985cc46 + 56cdf46 commit 0ef2bcb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
omit =
# leading `*/` for pytest-dev/pytest-cov#456
*/.tox/*
*/pep517-build-env-*
disable_warnings =
couldnt-parse

[report]
show_missing = True
14 changes: 13 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[pytest]
norecursedirs=dist build .tox .eggs
addopts=--doctest-modules
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings=
## upstream

# Ensure ResourceWarnings are emitted
default::ResourceWarning

Expand All @@ -18,3 +19,14 @@ filterwarnings=
ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning

# shopkeep/pytest-black#67
ignore:'encoding' argument not specified::pytest_black

# realpython/pytest-mypy#152
ignore:'encoding' argument not specified::pytest_mypy

# python/cpython#100750
ignore:'encoding' argument not specified::platform

## end upstream
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ toxworkdir={env:TOX_WORK_DIR:.tox}

[testenv]
deps =
commands =
pytest {posargs}
usedevelop = True
extras = testing
setenv =
PYTHONWARNDEFAULTENCODING = 1
# required for github.username()
GITHUB_USERNAME = jaraco
commands =
pytest {posargs}
usedevelop = True
extras =
testing

[testenv:docs]
extras =
Expand Down

0 comments on commit 0ef2bcb

Please sign in to comment.