Skip to content

Commit 0739500

Browse files
committed
update pytest and move settings to pyproject.toml
1 parent a6082dc commit 0739500

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
[tool.black]
22
line-length = 180
3+
4+
[tool.pytest.ini_options]
5+
minversion = "6.0"
6+
testpaths = ["src", "tests"]
7+
python_files = [
8+
"test_*.py",
9+
"*_test.py",
10+
"tests.py"
11+
]
12+
addopts = "-ra --strict --doctest-glob=*.rst --tb=short"
13+
doctest_optionflags= "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES"
14+
filterwarnings = "ignore::DeprecationWarning"

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ check-manifest>=0.36
77
flake8
88
autopep8
99
pylint
10-
pytest>=4.6
10+
pytest>=6.0
1111
pytest_mock
1212
pytest-cov
1313
sybil

setup.cfg

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,6 @@ exclude =
1717
convention = numpy
1818
add-ignore = D100
1919

20-
[tool:pytest]
21-
testpaths = src tests
22-
norecursedirs =
23-
migrations
24-
25-
python_files =
26-
test_*.py
27-
*_test.py
28-
tests.py
29-
addopts =
30-
-ra
31-
--strict
32-
--doctest-glob=\*.rst
33-
--tb=short
34-
doctest_optionflags= NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES
35-
filterwarnings =
36-
ignore::DeprecationWarning
37-
3820
[isort]
3921
force_single_line = True
4022
line_length = 180

0 commit comments

Comments
 (0)