1
1
[build-system ]
2
2
requires = [" setuptools>=42" , " wheel" , " setuptools_scm[toml]>=3.4" ]
3
3
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
28
27
29
28
[tool .ruff ]
30
29
# Exclude a variety of commonly ignored directories.
@@ -72,20 +71,24 @@ output-format = "full"
72
71
select = [
73
72
# https://beta.ruff.rs/docs/rules
74
73
# "A", # flake8-builtins
74
+ # "ANN", # flake8-annotations
75
75
# "ARG", # flake8-unused-arguments
76
76
" ASYNC" , # flake8-async
77
77
# "B", # flake8-bugbear
78
78
# "BLE", # flake8-blind-except
79
79
# "C4", # flake8-comprehensions
80
80
" C90" , # McCabe cyclomatic complexity
81
+ # "COM", # flake8-commas
82
+ # "D", # pydocstyle
81
83
" DJ" , # flake8-django
82
84
# "DTZ", # flake8-datetimez
83
85
" E" , # pycodestyle
84
86
# "EM", # flake8-errmsg
87
+ # "ERA", # eradicate
85
88
# "EXE", # flake8-executable
86
89
" F" , # Pyflakes
87
90
" FA" , # flake8-future-annotations
88
- # "FLY ", # flynt
91
+ # "FBT ", # flake8-boolean-trap
89
92
" G" , # flake8-logging-format
90
93
# "I", # isort
91
94
" ICN" , # flake8-import-conventions
@@ -99,29 +102,24 @@ select = [
99
102
# "PIE", # flake8-pie
100
103
# "PL", # Pylint
101
104
# "PT", # flake8-pytest-style
105
+ # "PTH", # flake8-use-pathlib
102
106
# "PYI", # flake8-pyi
107
+ # "RET", # flake8-return
103
108
" RSE" , # flake8-raise
109
+ # "Q", # flake8-quotes
104
110
# "RUF", # Ruff-specific rules
105
111
# "S", # flake8-bandit
106
112
# "SIM", # flake8-simplify
107
113
# "SLF", # flake8-self
108
114
# "T10", # flake8-debugger
115
+ # "T20", # flake8-print
116
+ # "TCH", # flake8-type-checking
109
117
# "TD", # flake8-todos
110
118
# "TID", # flake8-tidy-imports
119
+ # "TRY", # tryceratops
111
120
# "UP", # pyupgrade
112
121
# "W", # pycodestyle
113
122
# "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
125
123
]
126
124
ignore = [
127
125
# `ruff rule S101` for a description of that rule
0 commit comments