Skip to content

Commit 069016c

Browse files
Update pyproject.toml to refine ruff configuration by disabling preview mode, adjusting line length settings, and expanding linting rules to enhance code quality checks.
1 parent 2d5744b commit 069016c

1 file changed

Lines changed: 29 additions & 59 deletions

File tree

pyproject.toml

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ pdmodels = "pdmodels.cli:main"
6969

7070
[tool.ruff]
7171
target-version = "py312"
72-
preview = true
73-
line-length = 100
72+
preview = false
7473
src = ["src"]
74+
line-length = 100
75+
force-exclude = true
7576
extend-exclude = [
7677
".git",
7778
".hg",
@@ -90,72 +91,41 @@ extend-exclude = [
9091
[tool.ruff.lint]
9192
# Check https://beta.ruff.rs/docs/rules/ for full list of rules
9293
select = [
93-
"E", # pycodestyle
94-
# "W", # pycodestyle
95-
"F", # Pyflakes
96-
"C90", # mccabe
97-
"I", # isort
98-
# "N", # pep8-naming
99-
# "D", # pydocstyle
100-
"UP", # pyupgrade
101-
# "YTT", # flake8-2020
102-
# "ANN", # flake8-annotations
103-
# "S", # flake8-bandit
104-
# "BLE", # flake8-blind-except
105-
# "FBT", # flake8-boolean-trap
106-
"B", # flake8-bugbear
107-
"A", # flake8-builtins
108-
# "COM", # flake8-commas
109-
# "C4", # flake8-comprehensions
110-
# "DTZ", # flake8-datetimez
111-
# "T10", # flake8-debugger
112-
# "DJ", # flake8-django
113-
# "EM", # flake8-errmsg
114-
# "EXE", # flake8-executable
115-
# "ISC", # flake8-implicit-str-concat
116-
# "ICN", # flake8-import-conventions
117-
# "G", # flake8-logging-format
118-
# "INP", # flake8-no-pep420
119-
# "PIE", # flake8-pie
120-
# "T20", # flake8-print
121-
# "PYI", # flake8-pyi
122-
# "PT", # flake8-pytest-style
123-
# "Q", # flake8-quotes
124-
# "RSE", # flake8-raise
125-
# "RET", # flake8-return
126-
# "SLF", # flake8-self
127-
"SIM", # flake8-simplify
128-
"TID", # flake8-tidy-imports
129-
# "TCH", # flake8-type-checking
130-
# "ARG", # flake8-unused-arguments
131-
# "PTH", # flake8-use-pathlib
132-
# "ERA", # eradicate
133-
# "PD", # pandas-vet
134-
# "PGH", # pygrep-hooks
135-
# "PLC", # pylint-convention
136-
"PLE", # pylint-error
137-
# "PLR", # pylint-refactor
138-
# "PLW", # pylint-warning
139-
# "TRY", # tryceratops
140-
# "NPY", # numpy
141-
"RUF", # ruff
94+
"A", # flake8-builtins
95+
"ARG", # flake8-unused-arguments
96+
"B", # flake8-bugbear
97+
"C4", # flake8-comprehensions
98+
"C90", # mccabe
99+
"E", # pycodestyle
100+
"F", # Pyflakes
101+
"I", # isort
102+
"NPY", # numpy
103+
"PD", # pandas-vet
104+
"PERF", # perflint
105+
"PLE", # pylint-error
106+
"RUF", # ruff
107+
"SIM", # flake8-simplify
108+
"TID", # flake8-tidy-imports
109+
"UP", # pyupgrade
110+
]
111+
extend-select = [
112+
"D", # pydocstyle
113+
"W", # pycodestyle
114+
"PLW", # pylint-warning
142115
]
143-
extend-select = ["W", "PLW"]
144116
ignore = ["B905", "E203", "E501", "E741", "UP037"]
145-
unfixable = ["F401"]
117+
118+
[tool.ruff.lint.flake8-tidy-imports]
119+
ban-relative-imports = "all"
146120

147121
[tool.ruff.lint.isort]
148122
known-first-party = ["pdmodels"]
149123

150124
[tool.ruff.lint.mccabe]
151125
max-complexity = 12
152126

153-
[tool.ruff.lint.flake8-tidy-imports]
154-
ban-relative-imports = "all"
155-
156-
[tool.ruff.lint.flake8-builtins]
157-
builtins-allowed-modules = []
158-
builtins-ignorelist = []
127+
[tool.ruff.lint.pydocstyle]
128+
convention = "google"
159129

160130
[tool.ruff.lint.per-file-ignores]
161131
"__init__.py" = ["F401"]

0 commit comments

Comments
 (0)