-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathruff.toml
More file actions
58 lines (48 loc) · 1.1 KB
/
ruff.toml
File metadata and controls
58 lines (48 loc) · 1.1 KB
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
# Ruff configuration file for HarmonyDagger
# Target Python 3.8+
target-version = "py38"
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Allow imports relative to the "harmonydagger" package
src = ["harmonydagger"]
[format]
# Use double quotes for strings.
quote-style = "double"
# Indent with 4 spaces.
indent-style = "space"
line-ending = "auto"
[lint]
# Enable flake8-bugbear (`B`) rules.
select = ["E", "F", "B", "I", "W"]
# Ignore trailing whitespace errors (`W293`) and line length violations (`E501`).
ignore = ["E501", "W293"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[lint.isort]
known-first-party = ["harmonydagger"]
[lint.per-file-ignores]
# Allow star imports in __init__.py files
"**/__init__.py" = ["F401", "F403"]