-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (66 loc) · 1.37 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tool.ruff]
extend-include = ["notebooks/*.ipynb"]
line-length = 79
target-version = "py38"
[tool.ruff.format]
indent-style = "space"
quote-style = "single"
[tool.ruff.lint]
# See all rules here: https://beta.ruff.rs/docs/rules
select = [
# pyflakes
"F",
# pycodestyle
"E",
# mccabe
"C90",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-implicit-str-concat
"ISC",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# PyLint
"PLE", "PLW",
# ruff-specific
"RUF",
]
extend-ignore = [
# Allow builtin attribute shadowing
"A003",
# Conflicts with ruff format but leaving as enabled for now. This
# may require ruff's linter to be run a second time after the formatter.
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
# "COM812",
# "ISC001",
# Skip some flake8-simplify rules
"SIM105", "SIM117",
"C408",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = []
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"