-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruff.toml
More file actions
74 lines (62 loc) · 2.19 KB
/
ruff.toml
File metadata and controls
74 lines (62 loc) · 2.19 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Ruff Configuration File
# This file configures the Ruff linter, which is used to enforce code quality and style.
# Exclude a variety of commonly ignored directories.
exclude = [
# Version control directories
".bzr", ".git", ".hg", ".svn",
# Python environment and cache directories
".direnv", ".eggs", ".mypy_cache", ".pytest_cache", ".pytype", ".ruff_cache", ".venv", "__pycache__",
# Build and distribution directories
"_build", "buck-out", "build", "dist",
# Node.js and other project-specific directories
"node_modules", "site-packages", "venv",
# Logs and temporary files
"logs.log", "mlruns", "mlflow_benchmark",
# Documentation and data directories
"docs", "data",
"tests",
"__init__.py",
]
# Force exclude ensures these directories are always ignored.
force-exclude = true
#Klikbaar vanuit IDE Terminal
output-format = "concise"
# Set the maximum line length for code.
line-length = 120
# Specify the target Python version for linting.
target-version = "py312"
[lint]
# Enable specific linting rules.
select = [
"E", # pycodestyle rules
"N", # pep8-naming rules
"F", # pyflakes rules
"D", # pydocstyle rules
]
# Ignore specific linting rules.
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D107", # Missing docstring in __init__
"D202", # No blank lines allowed after function docstring
"D413", # Missing blank line after last section
]
# Allow fix for all enabled rules when `--fix` is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format]
# Configure code formatting options.
quote-style = "double"
skip-magic-trailing-comma = true
line-ending = "auto"
indent-style = "space" # Default is "4" spaces.
docstring-code-format = true
docstring-code-line-length = 120 # Use "dynamic" to use the line-length value from "line-length".
[lint.per-file-ignores]
# Ignore specific rules for test files.
"tests/**" = ["D103","D102"] # Ignore missing docstrings in tests
[lint.pydocstyle]
# Use the Google style guide for docstrings.
convention = "google"