@@ -27,74 +27,74 @@ dev = [
2727
2828line-length = 120
2929
30- # [tool.ruff.lint]
31- # select = [
32- # "ALL"
33- # ]
34- #
35- # ignore = [
36- # "ANN", # Missing type annotations
30+ [tool .ruff .lint ]
31+ select = [
32+ " ALL"
33+ ]
34+
35+ ignore = [
36+ " ANN" , # Missing type annotations
3737# "A002", # Function argument `id` is shadowing a Python builtin
38- # "ARG001", # Unused function argument: `...`
39- # "COM812", # Trailing comma missing
40- # "D100", # Missing docstring in public module
38+ " ARG001" , # Unused function argument: `...`
39+ " COM812" , # Trailing comma missing
40+ " D100" , # Missing docstring in public module
4141# "D101", # Missing docstring in public class
4242# "D102", # Missing docstring in public method
43- # "D103", # Missing docstring in public function
44- # "D104", # Missing docstring in public package
43+ " D103" , # Missing docstring in public function
44+ " D104" , # Missing docstring in public package
4545# "D107", # Missing docstring in __init__
46- # "D203 ", # incorrect-blank- line-before-class
47- # "D212 ", # Multi- line docstring summary should start at the first line
48- # "D212", # Multi-line docstring summary should start at the first line
49- # "D400", # First line should end with a period
50- # "D415", # First line should end with a period, question mark, or exclamation point
46+ " D200 " , # One- line docstring should fit on one line
47+ " D203 " , # incorrect-blank- line-before-class
48+ " D212" , # Multi-line docstring summary should start at the first line
49+ " D400" , # First line should end with a period
50+ " D415" , # First line should end with a period, question mark, or exclamation point
5151# "DTZ005", # `datetime.datetime.now()` called without a `tz` argument
5252# "EM102", # Exception must not use an f-string literal, assign to variable first
53- # "ERA001", # Found commented-out code
53+ " ERA001" , # Found commented-out code
5454# "FBT002", # Boolean default positional argument in function definition
55- # "FIX002", # Line contains TODO, consider resolving the issue
56- # "FIX003", # Line contains XXX, consider resolving the issue
55+ " FIX002" , # Line contains TODO, consider resolving the issue
56+ " FIX003" , # Line contains XXX, consider resolving the issue
5757# "N802", # Function name `testLogging` should be lowercase
58- # "PLW1510", # `subprocess.run` without explicit `check` argument
59- # "S101", # Use of 'assert' detected
58+ " PLW1510" , # `subprocess.run` without explicit `check` argument
59+ " S101" , # Use of 'assert' detected
6060# "S104", # Possible binding to all interfaces
6161# "S314", # Using `xml` to parse untrusted data is known to be vulnerable to XML attacks; use `defusedxml` equivalents
62- # "S603", # `subprocess` call: check for execution of untrusted input
62+ " S603" , # `subprocess` call: check for execution of untrusted input
6363# "S604", # Function call with `shell=True` parameter identified, security issue
64- # "S607", # Starting a process with a partial executable path
64+ " S607" , # Starting a process with a partial executable path
6565# "SIM108", # Use ternary operator `...` instead of `if`-`else`-block
66- # "TD001", # Invalid TODO tag: `XXX`
67- # "TD002", # Missing author in TODO
68- # "TD003", # Missing issue link for this TODO
66+ " TD" ,
6967# "TRY003", # Avoid specifying long messages outside the exception class
70- # "PLR2004", # Magic value used in comparison, consider replacing `...` with a constant variable
71- # "PLR0913", # Too many arguments in function definition (6 > 5)
72- # "PTH107", # `os.remove()` should be replaced by `Path.unlink()`
73- # "PTH108", # `os.unlink()` should be replaced by `Path.unlink()`
74- # "PTH110", # `os.path.exists()` should be replaced by `Path.exists()`
75- # "PTH116", # `os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`
68+ " PLR2004" , # Magic value used in comparison, consider replacing `...` with a constant variable
69+ " PLR0913" , # Too many arguments in function definition (6 > 5)
70+ " PTH107" , # `os.remove()` should be replaced by `Path.unlink()`
71+ " PTH108" , # `os.unlink()` should be replaced by `Path.unlink()`
72+ " PTH110" , # `os.path.exists()` should be replaced by `Path.exists()`
73+ " PTH116" , # `os.stat()` should be replaced by `Path.stat()`, `Path.owner()`, or `Path.group()`
7674# "PTH120", # `os.path.dirname()` should be replaced by `Path.parent`
7775# "PTH123", # `open()` should be replaced by `Path.open()`
7876# "PT009", # Use a regular `assert` instead of unittest-style `assertEqual`
79- # "PT022", # No teardown in fixture `fw_cfg_factory`, use `return` instead of `yield`
77+ " PT022" , # No teardown in fixture `fw_cfg_factory`, use `return` instead of `yield`
8078# "TID252", # Prefer absolute imports over relative imports from parent modules
81- # "UP022", # Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`
82- # ]
83- #
84- # [tool.basedpyright]
85- # reportAny = "none"
86- # reportArgumentType = "none"
87- # reportAttributeAccessIssue = "none"
79+ " UP022" , # Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`
80+ ]
81+
82+ [tool .basedpyright ]
83+ reportAny = " none"
84+ reportArgumentType = " none"
85+ reportAttributeAccessIssue = " none"
8886# reportImplicitOverride = "none"
8987# reportImplicitStringConcatenation = "none"
90- # reportMissingParameterType = "none"
91- # reportMissingTypeStubs = "none"
92- # reportOptionalMemberAccess = "none"
88+ reportMissingParameterType = " none"
89+ reportMissingTypeStubs = " none"
90+ reportOptionalMemberAccess = " none"
9391# reportUnannotatedClassAttribute = "none"
9492# reportUninitializedInstanceVariable = "none"
95- # reportUnknownArgumentType = "none"
96- # reportUnknownMemberType = "none"
97- # reportUnknownParameterType = "none"
98- # reportUnknownVariableType = "none"
99- # reportUnusedCallResult = "none"
100- # reportUnusedParameter = "none"
93+ reportUnknownArgumentType = " none"
94+ reportUnknownMemberType = " none"
95+ reportUnknownParameterType = " none"
96+ reportUnknownVariableType = " none"
97+ reportUnusedCallResult = " none"
98+ reportUnusedParameter = " none"
99+ reportUnusedVariable = " none"
100+ reportOperatorIssue = " none"
0 commit comments