Skip to content

Commit cf25dcd

Browse files
committed
move back non-packing related config into setup.cfg
1 parent 9b6e714 commit cf25dcd

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

pyproject.toml

-26
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,3 @@ license-files = ["LICENSE.md"]
5555

5656
[tool.setuptools.packages.find]
5757
namespaces = false
58-
59-
[tool.pytest.ini_options]
60-
addopts = "--tb=short --strict-markers -ra"
61-
testspath = "tests"
62-
filterwarnings = ["ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning"]
63-
64-
[tool.isort]
65-
skip = [".tox"]
66-
atomic = true
67-
multi_line_output = 5
68-
extra_standard_library = ["types"]
69-
known_third_party = ["pytest", "_pytest", "django", "pytz", "uritemplate"]
70-
known_first_party = ["rest_framework", "tests"]
71-
72-
[tool.coverage.run]
73-
# NOTE: source is ignored with pytest-cov (but uses the same).
74-
source = ["."]
75-
include = ["rest_framework/*", "tests/*"]
76-
branch = true
77-
78-
[tool.coverage.report]
79-
include = ["rest_framework/*", "tests/*"]
80-
exclude_lines = [
81-
"pragma: no cover",
82-
"raise NotImplementedError",
83-
]

setup.cfg

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
[tool:pytest]
2+
addopts=--tb=short --strict-markers -ra
3+
testspath = tests
4+
filterwarnings = ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning
5+
16
[flake8]
27
ignore = E501,W503,W504
38
banned-modules = json = use from rest_framework.utils import json!
9+
10+
[isort]
11+
skip=.tox
12+
atomic=true
13+
multi_line_output=5
14+
extra_standard_library=types
15+
known_third_party=pytest,_pytest,django,pytz,uritemplate
16+
known_first_party=rest_framework,tests
17+
18+
[coverage:run]
19+
# NOTE: source is ignored with pytest-cov (but uses the same).
20+
source = .
21+
include = rest_framework/*,tests/*
22+
branch = 1
23+
24+
[coverage:report]
25+
include = rest_framework/*,tests/*
26+
exclude_lines =
27+
pragma: no cover
28+
raise NotImplementedError

0 commit comments

Comments
 (0)