forked from eclipse-score/score
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
37 lines (32 loc) · 943 Bytes
/
pyproject.toml
File metadata and controls
37 lines (32 loc) · 943 Bytes
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
# This file is at the root level, as it applies to all Python code,
# not only to docs or to tools.
[tool.pyright]
typeCheckingMode = "standard"
pythonVersion = "3.12" # Keep in sync with MODULE.bazel
exclude = [
"**/__pycache__",
"**/.*",
"bazel-*",
]
[tool.ruff]
target-version = "py312"
extend-exclude = [
"__pycache__",
".*",
"bazel-*",
]
# Selected rules for clean code, readability, and bug prevention
lint.select = [
"E", # pycodestyle (PEP8)
"F", # pyflakes (undefined vars, unused imports)
"I", # isort (import sorting)
"B", # flake8-bugbear (likely bugs)
"C90", # mccabe (complexity checks)
"UP", # pyupgrade (modern Python 3.12+ features)
"SIM", # flake8-simplify (simplifies code patterns)
"RET" # flake8-return (consistent return statements)
]
lint.ignore = [
# Rules we want to ignore go in here.
# Always provide a comment explaining why.
]