Skip to content

Commit 3bbae97

Browse files
committed
update pyproject formatting
1 parent 1e55d56 commit 3bbae97

2 files changed

Lines changed: 29 additions & 30 deletions

File tree

.coverage

0 Bytes
Binary file not shown.

pyproject.toml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ scipy = "^1.15.2"
1717
tqdm = "^4.67.1"
1818
poetry-core = "^2.1.2"
1919

20-
2120
[build-system]
2221
requires = ["poetry-core"]
2322
build-backend = "poetry.core.masonry.api"
@@ -28,41 +27,41 @@ line-length = 88
2827

2928
# Enable specific linting rules
3029
lint.select = [
31-
"E", # pycodestyle (style errors)
32-
"F", # Pyflakes (logical errors)
33-
"W", # Warnings
34-
"C90", # mccabe (complexity checks)
35-
"I", # isort (import sorting)
36-
"N", # pep8-naming (naming conventions)
37-
"D", # pydocstyle (docstring conventions)
38-
"UP", # pyupgrade (Python syntax modernization)
39-
"B", # flake8-bugbear (common pitfalls and performance issues)
40-
"S", # flake8-bandit (security issues)
41-
"YTT", # flake8-2020 (Python 2 compatibility issues)
42-
"Q", # flake8-quotes (quote consistency)
43-
"PL", # pylint (general best practices)
44-
"RUF", # Ruff-specific rules
30+
"E", # pycodestyle (style errors)
31+
"F", # Pyflakes (logical errors)
32+
"W", # Warnings
33+
"C90", # mccabe (complexity checks)
34+
"I", # isort (import sorting)
35+
"N", # pep8-naming (naming conventions)
36+
"D", # pydocstyle (docstring conventions)
37+
"UP", # pyupgrade (Python syntax modernization)
38+
"B", # flake8-bugbear (common pitfalls and performance issues)
39+
"S", # flake8-bandit (security issues)
40+
"YTT", # flake8-2020 (Python 2 compatibility issues)
41+
"Q", # flake8-quotes (quote consistency)
42+
"PL", # pylint (general best practices)
43+
"RUF", # Ruff-specific rules
4544
"T20",
46-
"F841", # unused variable
45+
"F841", # unused variable
4746
"ERA001" # commented out code
4847
]
4948

5049
# Exclude some noisy or unnecessary rules
5150
lint.ignore = [
52-
"D203", # 1 blank line before a class (conflicts with D211)
53-
"D213", # Multi-line docstring should start on the first line (conflicts with D212)
54-
"E501", # Line length (handled by autoformatter instead)
55-
"N803", # Argument name should be lowercase
56-
"N806", # Variable in function should be lowercase
57-
"D415", # End first line with a period, question mark, or exclamation point
58-
"S101", # Use of `assert` detected
59-
"E203", # whitespace before ':'
60-
"E731", # Do not assign a `lambda` expression, use a `def`
61-
"D107", # Missing docstring in `__init__`
51+
"D203", # 1 blank line before a class (conflicts with D211)
52+
"D213", # Multi-line docstring should start on the first line (conflicts with D212)
53+
"E501", # Line length (handled by autoformatter instead)
54+
"N803", # Argument name should be lowercase
55+
"N806", # Variable in function should be lowercase
56+
"D415", # End first line with a period, question mark, or exclamation point
57+
"S101", # Use of `assert` detected
58+
"E203", # whitespace before ':'
59+
"E731", # Do not assign a `lambda` expression, use a `def`
60+
"D107", # Missing docstring in `__init__`
6261
"PLR2004", # Magic value used in comparison
63-
"S607", # Starting a process with a partial executable path
64-
"S605", # Starting a process with a shell
65-
"S603", # `subprocess` call: check for execution of untrusted input
62+
"S607", # Starting a process with a partial executable path
63+
"S605", # Starting a process with a shell
64+
"S603", # `subprocess` call: check for execution of untrusted input
6665
]
6766

6867
# Automatically fix issues where possible
@@ -75,7 +74,7 @@ combine-as-imports = true
7574

7675
# Enforce docstring styles
7776
[tool.lint.pydocstyle]
78-
convention = "google" # Options: "google", "numpy", "pep257"
77+
convention = "google"
7978

8079
# Autoformatting options
8180
[tool.ruff.format]

0 commit comments

Comments
 (0)