Skip to content

Commit 24d9acf

Browse files
pyproject fixes - all rules, proper table format
1 parent 6e3c85d commit 24d9acf

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
@@ -100,37 +100,37 @@ force-exclude = '''
100100
)/
101101
'''
102102

103-
104103
[tool.ruff]
105104
line-length = 120
106105
target-version = "py39"
106+
force-exclude = true
107+
108+
# -- Exclude files --
109+
extend-exclude = [
110+
"linkml_runtime/linkml_model/**/*.py",
111+
"notebooks/**"
112+
]
107113

114+
[tool.ruff.lint]
108115
# -- Rule selection --
109116
select = [
110117
"E", # pycodestyle errors
111118
"F", # Pyflakes
112119
"I", # isort
113120
"UP", # pyupgrade
121+
"T100", # no debugger imports/usages
114122
]
115-
force-exclude = true
116123
extend-ignore = [
117124
"E203",
118-
"UP007", # until we drop 3.9
119-
]
120-
121-
# -- Exclude files --
122-
extend-exclude = [
123-
"tests/**/output",
124-
"tests/**/input",
125-
"tests/**/__snapshots__",
126-
"notebooks/"
127125
]
126+
pyupgrade.keep-runtime-typing = true # until we drop 3.9
128127

129-
[tool.ruff.per-file-ignores]
128+
[tool.ruff.lint.per-file-ignores]
130129
"tests/**/**.py" = ["F841", "E501", "F842", "E741"] # I ain't fixing all that
131130

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

0 commit comments

Comments
 (0)