Skip to content

Commit 04ebce2

Browse files
Ryan Whitmorebrandonwillard
authored andcommitted
Migrate as much of the setup.cfg file to the pyproject.toml file as we can.
1 parent 1c6e7a7 commit 04ebce2

File tree

2 files changed

+50
-42
lines changed

2 files changed

+50
-42
lines changed

pyproject.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,53 @@ etuples = ["py.typed"]
4545
[tool.setuptools_scm]
4646
version_scheme = "guess-next-dev"
4747
local_scheme = "dirty-tag"
48+
49+
[tool.pydocstyle]
50+
# Ignore errors for missing docstrings.
51+
# Ignore D202 (No blank lines allowed after function docstring)
52+
# due to bug in black: https://github.com/ambv/black/issues/355
53+
add-ignore = [
54+
"D100",
55+
"D101",
56+
"D102",
57+
"D103",
58+
"D104",
59+
"D105",
60+
"D106",
61+
"D107",
62+
"D202",
63+
]
64+
convention = "numpy"
65+
66+
[tool.pytest.ini_options]
67+
python_files = ["test*.py"]
68+
testpaths = ["tests"]
69+
70+
[tool.coverage.run]
71+
relative_files = true
72+
omit = ["tests/*"]
73+
branch = true
74+
75+
[tool.coverage.report]
76+
exclude_lines = [
77+
"pragma: no cover",
78+
"def __repr__",
79+
"raise NotImplementedError",
80+
"if __name__ == .__main__.:",
81+
"assert False",
82+
"ModuleNotFoundError",
83+
]
84+
85+
[tool.isort]
86+
multi_line_output = 3
87+
include_trailing_comma = true
88+
force_grid_wrap = 0
89+
use_parentheses = true
90+
ensure_newline_before_comments = true
91+
line_length = 88
92+
93+
[tool.pylint]
94+
max-line-length = 88
95+
96+
[tool.pylint.messages_control]
97+
disable = ["C0330", "C0326"]

setup.cfg

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,5 @@
1-
2-
3-
[pydocstyle]
4-
# Ignore errors for missing docstrings.
5-
# Ignore D202 (No blank lines allowed after function docstring)
6-
# due to bug in black: https://github.com/ambv/black/issues/355
7-
add-ignore = D100,D101,D102,D103,D104,D105,D106,D107,D202
8-
convention = numpy
9-
10-
[tool:pytest]
11-
python_files=test*.py
12-
testpaths=tests
13-
14-
[coverage:run]
15-
relative_files = True
16-
omit =
17-
tests/*
18-
branch = True
19-
20-
[coverage:report]
21-
exclude_lines =
22-
pragma: no cover
23-
def __repr__
24-
raise NotImplementedError
25-
if __name__ == .__main__.:
26-
assert False
27-
ModuleNotFoundError
28-
29-
[isort]
30-
multi_line_output = 3
31-
include_trailing_comma = True
32-
force_grid_wrap = 0
33-
use_parentheses = True
34-
ensure_newline_before_comments = True
35-
line_length = 88
36-
371
[flake8]
382
max-line-length = 88
393
extend-ignore = E203, W503
404
per-file-ignores =
415
**/__init__.py:F401,E402,F403
42-
43-
[pylint]
44-
max-line-length = 88
45-
46-
[pylint.messages_control]
47-
disable = C0330, C0326

0 commit comments

Comments
 (0)