-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
59 lines (41 loc) · 1.37 KB
/
ruff.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
# A path to the cache directory.
cache-dir = ".ruff_cache"
# The style in which violation messages should be formatted.
output-format = "grouped"
# Enable fix behavior by-default when running `ruff`
fix = false
# Enable application of unsafe fixes.
unsafe-fixes = false
# Enumerate all fixed violations.
show-fixes = true
# Disable preview features.
preview = false
# The minimum Python version targetted is Python 3.10.
target-version = "py310"
# Allow imports relative to the "src/armonik" and "test" directories.
src = ["src/armonik_analytics", "tests"]
# Allow lines to be as long as 110.
line-length = 100
# Use 4-long indents
indent-width = 4
[lint]
# A list of file patterns to exclude from formatting and linting.
exclude = ["*.pyi"]
# By default all rules are considered fixable.
fixable = ["ALL"]
# Avoid automatically removing unused imports in `__init__.py` files.
ignore-init-module-imports = false
[format]
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Use `\n` line endings for all files
line-ending = "lf"
# Enable auto-formatting of code examples in docstrings.
docstring-code-format = true
# Allow lines to be as long as 100 for code snippets in
# docstrings.
docstring-code-line-length = 100