Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	pytest.ini
  • Loading branch information
jaraco committed Feb 23, 2023
2 parents 5a40782 + 56cdf46 commit 8863905
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 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 --import-mode=importlib
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
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ toxworkdir={env:TOX_WORK_DIR:.tox}

[testenv]
deps =
setenv =
PYTHONWARNDEFAULTENCODING = 1
commands =
pytest {posargs}
usedevelop = True
extras = testing
extras =
testing

[testenv:docs]
extras =
Expand Down

0 comments on commit 8863905

Please sign in to comment.