Skip to content

Commit 9c208f8

Browse files
committed
Add ruff setting and ignore F401 in tasks where we need to share all the defined nox sessions
1 parent e88cee4 commit 9c208f8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

exasol/toolbox/nox/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import nox
2020
from nox import Session
2121

22+
# ruff: noqa F401
2223
from exasol.toolbox.nox._format import (
2324
_code_format,
2425
fix,

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ module = [
112112
]
113113
ignore_errors = true
114114

115+
[tool.ruff.lint]
116+
extend-ignore = [
117+
"E", # Syntax errors
118+
"F", # Pyflakes rules (excluding F401)
119+
"UP", # pyupgrade rules
120+
"D", # Docstring rules
121+
]
122+
extend-select = ["F401"]
123+
unfixable = []
124+
115125
[tool.poetry.plugins."console_scripts"]
116126
tbx = 'exasol.toolbox.tools.tbx:CLI'
117127
sphinx-multiversion = 'exasol.toolbox.sphinx.multiversion:main'

0 commit comments

Comments
 (0)