Skip to content

Commit b434039

Browse files
authored
Merge pull request #5361 from cclauss/move-more-config-to-pyproject.toml
Migrate isort, mypy, and pytest config into pyproject.toml
2 parents 9fe4b68 + 8043eca commit b434039

File tree

2 files changed

+47
-43
lines changed

2 files changed

+47
-43
lines changed

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,52 @@ exclude = '''
2929
)
3030
'''
3131

32+
[tool.isort]
33+
atomic = true
34+
lines_after_imports = 2
35+
lines_between_types = 1
36+
multi_line_output = 5
37+
line_length = 80
38+
known_first_party = [
39+
"pipenv",
40+
"tests",
41+
]
42+
43+
[tool.mypy]
44+
ignore_missing_imports = true
45+
follow_imports = "skip"
46+
html_report = "mypyhtml"
47+
python_version = "3.7"
48+
mypy_path = "typeshed/pyi:typeshed/imports"
49+
50+
[tool.pytest.ini_options]
51+
addopts = "-ra"
52+
plugins = "xdist"
53+
testpaths = ["tests"]
54+
# Add vendor and patched in addition to the default list of ignored dirs
55+
# Additionally, ignore tasks, news, test subdirectories and peeps directory
56+
norecursedirs = [
57+
".*", "build",
58+
"dist",
59+
"CVS",
60+
"_darcs",
61+
"{arch}",
62+
"*.egg",
63+
"vendor",
64+
"patched",
65+
"news",
66+
"tasks",
67+
"docs",
68+
"tests/test_artifacts",
69+
"tests/pytest-pypi",
70+
"tests/pypi",
71+
"peeps",
72+
]
73+
filterwarnings = [
74+
"ignore::DeprecationWarning",
75+
"ignore::PendingDeprecationWarning",
76+
]
77+
3278
[tool.towncrier]
3379
package = "pipenv"
3480
filename = "CHANGELOG.rst"

setup.cfg

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ long_description = file: README.md
33
license = MIT
44
license_files = LICENSE
55

6+
# Currently flake8 does not support pyproject.toml
67
[flake8]
78
extend-exclude =
89
docs/,
@@ -26,49 +27,6 @@ ignore =
2627
# W503: line break before binary operator
2728
E402,E501,W503,E203
2829

29-
[isort]
30-
atomic=true
31-
lines_after_imports=2
32-
lines_between_types=1
33-
multi_line_output=5
34-
line_length=80
35-
known_first_party =
36-
pipenv
37-
tests
38-
39-
[mypy]
40-
ignore_missing_imports=true
41-
follow_imports=skip
42-
html_report=mypyhtml
43-
python_version=3.7
44-
mypy_path=typeshed/pyi:typeshed/imports
45-
46-
[tool:pytest]
47-
addopts = -ra
48-
plugins = xdist
49-
testpaths = tests
50-
; Add vendor and patched in addition to the default list of ignored dirs
51-
; Additionally, ignore tasks, news, test subdirectories and peeps directory
52-
norecursedirs =
53-
.* build
54-
dist
55-
CVS
56-
_darcs
57-
{arch}
58-
*.egg
59-
vendor
60-
patched
61-
news
62-
tasks
63-
docs
64-
tests/test_artifacts
65-
tests/pytest-pypi
66-
tests/pypi
67-
peeps
68-
filterwarnings =
69-
ignore::DeprecationWarning
70-
ignore::PendingDeprecationWarning
71-
7230
[coverage:run]
7331
parallel = true
7432

0 commit comments

Comments
 (0)