Skip to content

Commit 101280d

Browse files
committed
Update pyproject.toml
1 parent d9fcea3 commit 101280d

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,69 @@ all_extras = [
6969
"Homepage" = "https://github.com/SimonBlanke/Hyperactive"
7070
"Bug Reports" = "https://github.com/SimonBlanke/Hyperactive/issues"
7171
"Source" = "https://github.com/SimonBlanke/Hyperactive/"
72+
73+
74+
[tool.ruff]
75+
line-length = 88
76+
exclude = [".git", "examples/*"]
77+
target-version = "py39"
78+
extend-include = ["*.ipynb"]
79+
80+
[tool.ruff.lint]
81+
select = [
82+
# https://pypi.org/project/pycodestyle
83+
"D",
84+
"E",
85+
"W",
86+
# https://pypi.org/project/pyflakes
87+
"F",
88+
# https://pypi.org/project/flake8-bandit
89+
"S",
90+
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
91+
"UP",
92+
"I002", # Missing required imports
93+
"UP008", # Super calls with redundant arguments passed.
94+
"G010", # Deprecated log warn.
95+
"PLR1722", # Use sys.exit() instead of exit() and quit().
96+
"PT014", # pytest-duplicate-parametrize-test-cases.
97+
"PT006", # Checks for the type of parameter names passed to pytest.mark.parametrize.
98+
"PT007", # Checks for the type of parameter values passed to pytest.mark.parametrize.
99+
"PT018", # Checks for assertions that combine multiple independent condition
100+
"RUF001", # Checks for non unicode string literals
101+
"RUF002", # Checks for non unicode string literals
102+
"RUF003", # Checks for non unicode string literals
103+
]
104+
extend-select = [
105+
"I", # isort
106+
"C4", # https://pypi.org/project/flake8-comprehensions
107+
]
108+
ignore=[
109+
"E203", # Whitespace-before-punctuation.
110+
"E402", # Module-import-not-at-top-of-file.
111+
"E731", # Do not assign a lambda expression, use a def.
112+
"RET504", # Unnecessary variable assignment before `return` statement.
113+
"S101", # Use of `assert` detected.
114+
"RUF100", # https://docs.astral.sh/ruff/rules/unused-noqa/
115+
"C408", # Unnecessary dict call - rewrite as a literal.
116+
"UP031", # Use format specifier instead of %
117+
"S102", # Use of excec
118+
"C414", # Unnecessary `list` call within `sorted()`
119+
"S301", # pickle and modules that wrap it can be unsafe
120+
"C416", # Unnecessary list comprehension - rewrite as a generator
121+
"S310", # Audit URL open for permitted schemes
122+
"S202", # Uses of `tarfile.extractall()`
123+
"S307", # Use of possibly insecure function
124+
"C417", # Unnecessary `map` usage (rewrite using a generator expression)
125+
"S605", # Starting a process with a shell, possible injection detected
126+
"E741", # Ambiguous variable name
127+
"S107", # Possible hardcoded password
128+
"S105", # Possible hardcoded password
129+
"PT018", # Checks for assertions that combine multiple independent condition
130+
"S602", # sub process call with shell=True unsafe
131+
"C419", # Unnecessary list comprehension, some are flagged yet are not
132+
"C409", # Unnecessary `list` literal passed to `tuple()` (rewrite as a `tuple` literal)
133+
"S113", # Probable use of httpx call without timeout
134+
]
135+
136+
[tool.ruff.lint.pydocstyle]
137+
convention = "numpy"

0 commit comments

Comments
 (0)