-
-
Notifications
You must be signed in to change notification settings - Fork 596
Expand file tree
/
Copy pathpyproject.toml
More file actions
36 lines (33 loc) Β· 1.21 KB
/
Copy pathpyproject.toml
File metadata and controls
36 lines (33 loc) Β· 1.21 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
[tool.ruff]
line-length = 160
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "RUF"]
ignore = [
# Intentional in educational examples
"B009", # getattr with constant β used to demonstrate dynamic attribute access
"B010", # setattr with constant β used to demonstrate namedtuple immutability
"B024", # abstract base class without abstract methods β intentional in meta_class
"B905", # zip without strict= β educational examples don't need strict enforcement
"C406", # unnecessary list literal in dict() β intentional dict() constructor demo
"C408", # unnecessary dict() call β intentional dict() constructor demo
"C416", # unnecessary comprehension β intentional comprehension/iterator demos
"RUF005", # collection literal concatenation β intentional tuple concat demo
"RUF012", # mutable class default β intentional in meta_class example
]
[tool.coverage.run]
source = ["ultimatepython"]
branch = true
[tool.coverage.report]
exclude_lines = [
"skip: (if|else)",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"any\\("
]
fail_under = 80
omit = [
"venv/**",
"runner.py",
"**/__init__.py"
]