Skip to content

Commit cb4b095

Browse files
adamtheturtleclaude
andcommitted
Work around toml-fmt array comment bugs
Avoid tox-dev/toml-fmt#184 (double quotes in comments corrupt arrays) by using single quotes in comments, and avoid tox-dev/toml-fmt#186 (single-quoted strings in arrays with comments get corrupted) by converting to double quotes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e66761e commit cb4b095

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

pyproject.toml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ lint.ignore = [
126126
"D212",
127127
# Ruff warns that this conflicts with the formatter.
128128
"ISC001",
129-
# Ignore "too-many-*" errors as they seem to get in the way more than
129+
# Ignore 'too-many-*' errors as they seem to get in the way more than
130130
# helping.
131131
"PLR0913",
132132
]
@@ -181,21 +181,21 @@ jobs = 0
181181
# as they seemed to get in the way.
182182
load-plugins = [
183183
"pylint_per_file_ignores",
184-
'pylint.extensions.bad_builtin',
185-
'pylint.extensions.comparison_placement',
186-
'pylint.extensions.consider_refactoring_into_while_condition',
187-
'pylint.extensions.docparams',
188-
'pylint.extensions.dunder',
189-
'pylint.extensions.eq_without_hash',
190-
'pylint.extensions.for_any_all',
191-
'pylint.extensions.mccabe',
192-
'pylint.extensions.no_self_use',
193-
'pylint.extensions.overlapping_exceptions',
194-
'pylint.extensions.private_import',
195-
'pylint.extensions.redefined_loop_name',
196-
'pylint.extensions.redefined_variable_type',
197-
'pylint.extensions.set_membership',
198-
'pylint.extensions.typing',
184+
"pylint.extensions.bad_builtin",
185+
"pylint.extensions.comparison_placement",
186+
"pylint.extensions.consider_refactoring_into_while_condition",
187+
"pylint.extensions.docparams",
188+
"pylint.extensions.dunder",
189+
"pylint.extensions.eq_without_hash",
190+
"pylint.extensions.for_any_all",
191+
"pylint.extensions.mccabe",
192+
"pylint.extensions.no_self_use",
193+
"pylint.extensions.overlapping_exceptions",
194+
"pylint.extensions.private_import",
195+
"pylint.extensions.redefined_loop_name",
196+
"pylint.extensions.redefined_variable_type",
197+
"pylint.extensions.set_membership",
198+
"pylint.extensions.typing",
199199
]
200200

201201
# Allow loading of arbitrary C extensions. Extensions are imported into the
@@ -209,12 +209,12 @@ unsafe-load-any-extension = false
209209
# multiple time (only on the command line, not in the configuration file where
210210
# it should appear only once). See also the "--disable" option for examples.
211211
enable = [
212-
'bad-inline-option',
213-
'deprecated-pragma',
214-
'file-ignored',
215-
'spelling',
216-
'use-symbolic-message-instead',
217-
'useless-suppression',
212+
"bad-inline-option",
213+
"deprecated-pragma",
214+
"file-ignored",
215+
"spelling",
216+
"use-symbolic-message-instead",
217+
"useless-suppression",
218218
]
219219

220220
# Disable the message, report, category or checker with the given id(s). You
@@ -228,28 +228,28 @@ enable = [
228228
# --disable=W"
229229

230230
disable = [
231-
'too-few-public-methods',
232-
'too-many-locals',
233-
'too-many-arguments',
234-
'too-many-instance-attributes',
235-
'too-many-return-statements',
236-
'too-many-lines',
237-
'locally-disabled',
231+
"too-few-public-methods",
232+
"too-many-locals",
233+
"too-many-arguments",
234+
"too-many-instance-attributes",
235+
"too-many-return-statements",
236+
"too-many-lines",
237+
"locally-disabled",
238238
# Let ruff handle long lines
239-
'line-too-long',
239+
"line-too-long",
240240
# Let ruff handle unused imports
241-
'unused-import',
241+
"unused-import",
242242
# Let ruff deal with sorting
243-
'ungrouped-imports',
243+
"ungrouped-imports",
244244
# We don't need everything to be documented because of mypy
245-
'missing-type-doc',
246-
'missing-return-type-doc',
245+
"missing-type-doc",
246+
"missing-return-type-doc",
247247
# Too difficult to please
248-
'duplicate-code',
248+
"duplicate-code",
249249
# Let ruff handle imports
250-
'wrong-import-order',
250+
"wrong-import-order",
251251
# mypy does not want untyped parameters.
252-
'useless-type-doc',
252+
"useless-type-doc",
253253
]
254254

255255
# We ignore invalid names because:

0 commit comments

Comments
 (0)