Skip to content

Commit d83c794

Browse files
committed
Add ruff to pyproject.toml
1 parent f13dda4 commit d83c794

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

poetry.lock

Lines changed: 30 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ sphinx-copybutton = "^0.5.0"
6666
sphinx-inline-tabs = "^2023.4.21"
6767
sphinx-design = ">=0.5.0,<1"
6868
typer = { extras = ["all"], version = ">=0.7.0" }
69+
ruff = "^0.12.8"
6970

7071
[tool.poetry.group.dev.dependencies]
7172
autoimport = "^1.4.0"
@@ -118,6 +119,21 @@ sphinx-multiversion = 'exasol.toolbox.sphinx.multiversion:main'
118119
[tool.poetry.requires-plugins]
119120
poetry-plugin-export = ">=1.8"
120121

122+
[tool.ruff]
123+
exclude = [
124+
"project-template/",
125+
]
126+
127+
[tool.ruff.lint]
128+
extend-ignore = [
129+
"E", # Syntax errors
130+
"F", # Pyflakes rules (excluding F401)
131+
"UP", # pyupgrade rules
132+
"D", # Docstring rules
133+
]
134+
extend-select = ["F401"]
135+
unfixable = []
136+
121137
[tool.sonar]
122138
projectKey = "com.exasol:python-toolbox"
123139
hostUrl = "https://sonarcloud.io"

0 commit comments

Comments
 (0)