Skip to content

Commit 6292a22

Browse files
committed
Updated configs in pyproject.toml for markdown-toc-creator and other minor details
1 parent e5b37eb commit 6292a22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ check-hidden = true
114114
ignore-words-list = "astroid,ser"
115115
skip = "**tests/cassettes/*,**/tests/cassettes/*"
116116

117+
[tool.markdown_toc_creator]
118+
horizontal-rule-style = "prettier"
119+
proactive = false
120+
117121
[tool.mypy]
118122
# Type-checks the interior of functions without type annotations.
119123
check_untyped_defs = true
@@ -202,6 +206,12 @@ max-attributes = 12
202206
max-line-length = 88 # Match ruff line-length
203207

204208
[tool.pylint.main]
209+
# Files or directories matching the regular expression patterns are skipped.
210+
# The regex matches against base names, not paths. The default value ignores
211+
# Emacs file locks
212+
ignore-patterns = [
213+
"^version\\.py$", # Version files made by setuptools_scm
214+
]
205215
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
206216
# number of processors available to use, and will cap the count on Windows to
207217
# avoid hangs.
@@ -230,6 +240,7 @@ disable = [
230240
"global-statement", # Rely on ruff PLW0603 for this
231241
"global-variable-not-assigned", # Rely on ruff PLW0602 for this
232242
"import-outside-toplevel", # Rely on ruff PLC0415 for this
243+
"import-private-name", # Rely on ruff PLC2701 for this
233244
"invalid-name", # Don't care to enforce this
234245
"keyword-arg-before-vararg", # Rely on ruff B026 for this
235246
"line-too-long", # Rely on ruff E501 for this
@@ -359,6 +370,7 @@ extend-select = [
359370
"B909",
360371
"B912",
361372
"CPY001",
373+
"DOC102",
362374
"DOC201",
363375
"DOC202",
364376
"DOC402",
@@ -560,6 +572,7 @@ mypy-init-return = true
560572
"E501", # Tests can have long strings
561573
"F841", # Tests can have unused locals
562574
"N802", # Tests function names can match class names
575+
"PLC2701", # Test can import private names if needed
563576
"PLR2004", # Tests can have magic values
564577
"PLR6301", # Test classes can ignore self
565578
"S101", # Tests can have assertions

0 commit comments

Comments
 (0)