Skip to content

Commit aa33028

Browse files
pyproject fixes - all rules, proper table format
1 parent 9707c6f commit aa33028

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,37 +87,37 @@ force-exclude = '''
8787
)/
8888
'''
8989

90-
9190
[tool.ruff]
9291
line-length = 120
9392
target-version = "py39"
93+
force-exclude = true
94+
95+
# -- Exclude files --
96+
extend-exclude = [
97+
"linkml_runtime/linkml_model/**/*.py",
98+
"notebooks/**"
99+
]
94100

101+
[tool.ruff.lint]
95102
# -- Rule selection --
96103
select = [
97104
"E", # pycodestyle errors
98105
"F", # Pyflakes
99106
"I", # isort
100107
"UP", # pyupgrade
108+
"T100", # no debugger imports/usages
101109
]
102-
force-exclude = true
103110
extend-ignore = [
104111
"E203",
105-
"UP007", # until we drop 3.9
106-
]
107-
108-
# -- Exclude files --
109-
extend-exclude = [
110-
"tests/**/output",
111-
"tests/**/input",
112-
"tests/**/__snapshots__",
113-
"notebooks/"
114112
]
113+
pyupgrade.keep-runtime-typing = true # until we drop 3.9
115114

116-
[tool.ruff.per-file-ignores]
115+
[tool.ruff.lint.per-file-ignores]
117116
"tests/**/**.py" = ["F841", "E501", "F842", "E741"] # I ain't fixing all that
118117

118+
119119
[tool.codespell]
120-
skip = '.git,*.pdf,*.svg,./tests,pyproject.toml,*.dill,poetry.lock'
120+
skip = '.git,*.pdf,*.svg,./tests,pyproject.toml,*.dill,poetry.lock,*.ipynb'
121121
# Ignore table where words could be split across rows
122122
# Ignore shortcut specifications like [Ff]alse
123123
ignore-regex = '(\|.*\|.*\|.*\||\[[A-Z][a-z]\][a-z][a-z])'

0 commit comments

Comments
 (0)