Skip to content

Commit ed6a828

Browse files
authored
Add ruff configuration file with linting rules
1 parent ab775a9 commit ed6a828

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

ruff.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
target-version = "py312"
2+
line-length = 88
3+
force-exclude = true
4+
extend-exclude = [
5+
"__pycache__",
6+
"build",
7+
"_version.py",
8+
"docs/experimental/**",
9+
]
10+
11+
[lint]
12+
select = [
13+
"F",
14+
"E",
15+
"C",
16+
"W",
17+
"B",
18+
"I",
19+
]
20+
ignore = [
21+
"C901",
22+
]
23+
24+
[lint.extend-per-file-ignores]
25+
"docs/examples/**" = ["I001"]
26+
"docs/source/conf.py" = ["E402"]
27+
28+
[lint.flake8-quotes]
29+
inline-quotes = "double"
30+
31+
[lint.isort]
32+
case-sensitive = true
33+
combine-as-imports = true
34+
force-sort-within-sections = true
35+
known-first-party = ["pytogo"]
36+
no-sections = false
37+
order-by-type = true
38+
relative-imports-order = "closest-to-furthest"
39+
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
40+
41+
[format]
42+
quote-style = "double"

0 commit comments

Comments
 (0)