Skip to content

Commit 12a5a0b

Browse files
committed
move back non-packing related config into setup.cfg
1 parent 2e5db58 commit 12a5a0b

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
@@ -54,29 +54,3 @@ license-files = ["LICENSE.md"]
5454

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

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)