Skip to content

Commit 0b9d654

Browse files
authored
Move doc8 config to pyrpoject.toml from setup.cfg (#1343)
1 parent 24dd720 commit 0b9d654

File tree

2 files changed

+34
-41
lines changed

2 files changed

+34
-41
lines changed

pyproject.toml

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
[build-system]
22
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
33

4-
[tool.black]
5-
skip-string-normalization = true
6-
line-length = 127
7-
include = '\.pyi?$'
8-
exclude = '''
9-
/(
10-
\.eggs
11-
| \.git
12-
| \.github
13-
| \.idea
14-
| \.mypy_cache
15-
| \.pytest_cache
16-
| \.tox
17-
| \.nox
18-
| \.venv
19-
| \.vscode
20-
| _build
21-
| build
22-
| cmd2.egg-info
23-
| cmd2_history.dat
24-
| dist
25-
| htmlcov
26-
)/
27-
'''
4+
[tool.doc8]
5+
ignore-path = [
6+
"__pycache__",
7+
"*.egg",
8+
".git",
9+
".idea",
10+
".nox",
11+
".pytest_cache",
12+
".tox",
13+
".venv",
14+
".vscode",
15+
"build",
16+
"cmd2",
17+
"cmd2.egg-info",
18+
"dist",
19+
"docs/_build",
20+
"examples",
21+
"htmlcov",
22+
"plugins",
23+
"tests",
24+
]
25+
max-line-length = 120
26+
verbose = 0
2827

2928
[tool.ruff]
3029
# Exclude a variety of commonly ignored directories.
@@ -72,20 +71,24 @@ output-format = "full"
7271
select = [
7372
# https://beta.ruff.rs/docs/rules
7473
# "A", # flake8-builtins
74+
# "ANN", # flake8-annotations
7575
# "ARG", # flake8-unused-arguments
7676
"ASYNC", # flake8-async
7777
# "B", # flake8-bugbear
7878
# "BLE", # flake8-blind-except
7979
# "C4", # flake8-comprehensions
8080
"C90", # McCabe cyclomatic complexity
81+
# "COM", # flake8-commas
82+
# "D", # pydocstyle
8183
"DJ", # flake8-django
8284
# "DTZ", # flake8-datetimez
8385
"E", # pycodestyle
8486
# "EM", # flake8-errmsg
87+
# "ERA", # eradicate
8588
# "EXE", # flake8-executable
8689
"F", # Pyflakes
8790
"FA", # flake8-future-annotations
88-
# "FLY", # flynt
91+
# "FBT", # flake8-boolean-trap
8992
"G", # flake8-logging-format
9093
# "I", # isort
9194
"ICN", # flake8-import-conventions
@@ -99,29 +102,24 @@ select = [
99102
# "PIE", # flake8-pie
100103
# "PL", # Pylint
101104
# "PT", # flake8-pytest-style
105+
# "PTH", # flake8-use-pathlib
102106
# "PYI", # flake8-pyi
107+
# "RET", # flake8-return
103108
"RSE", # flake8-raise
109+
# "Q", # flake8-quotes
104110
# "RUF", # Ruff-specific rules
105111
# "S", # flake8-bandit
106112
# "SIM", # flake8-simplify
107113
# "SLF", # flake8-self
108114
# "T10", # flake8-debugger
115+
# "T20", # flake8-print
116+
# "TCH", # flake8-type-checking
109117
# "TD", # flake8-todos
110118
# "TID", # flake8-tidy-imports
119+
# "TRY", # tryceratops
111120
# "UP", # pyupgrade
112121
# "W", # pycodestyle
113122
# "YTT", # flake8-2020
114-
# "ANN", # flake8-annotations # FIX ME?
115-
# "COM", # flake8-commas
116-
# "D", # pydocstyle -- FIX ME?
117-
# "ERA", # eradicate -- DO NOT FIX
118-
# "FBT", # flake8-boolean-trap # FIX ME
119-
# "PTH", # flake8-use-pathlib # FIX ME
120-
# "Q", # flake8-quotes
121-
# "RET", # flake8-return # FIX ME?
122-
# "T20", # flake8-print
123-
# "TCH", # flake8-type-checking
124-
# "TRY", # tryceratops
125123
]
126124
ignore = [
127125
# `ruff rule S101` for a description of that rule

setup.cfg

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ addopts =
77
--cov-report=term
88
--cov-report=html
99

10-
[doc8]
11-
ignore-path = docs/_build,.git,.idea,.pytest_cache,.tox,.nox,.venv,.vscode,build,cmd2,examples,tests,cmd2.egg-info,dist,htmlcov,__pycache__,*.egg,plugins
12-
max-line-length = 120
13-
verbose = 0
14-
1510
[mypy]
1611
disallow_incomplete_defs = True
1712
disallow_untyped_defs = True

0 commit comments

Comments
 (0)