-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (54 loc) · 1.53 KB
/
pyproject.toml
File metadata and controls
57 lines (54 loc) · 1.53 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
# Pylint formatting policy used across the project.
# Set to 200 to match existing code style and reduce noisy line wrapping.
[tool.pylint.format]
max-line-length = 200
max-module-lines = 2000
# General pylint behavior for this repository.
[tool.pylint.master]
# These modules are provided by BadgeOS/MicroPython runtime or simulator,
# not by standard desktop CPython. Ignoring them avoids false E0401 import
# errors when linting on developer machines.
ignored-modules = [
"machine",
"micropython",
"ota",
"vfs",
"system",
"system.eventbus",
"system.scheduler",
"system.scheduler.events",
"system.patterndisplay",
"system.patterndisplay.events",
"app",
"app_components",
"app_components.notification",
"app_components.tokens",
"events",
"events.input",
"settings",
"tildagonos",
"frontboards",
"frontboards.twentyfour",
"display",
"imu",
"egpio",
]
disable = [
"import-outside-toplevel", # Allow imports inside functions for lazy imports and to avoid circular dependencies.
]
# Type-checking exceptions for dynamic runtime members.
[tool.pylint.typecheck]
# MicroPython exposes these members at runtime, but desktop type models often
# do not. Marking them as generated-members prevents false no-member warnings.
generated-members = [
"time.ticks_ms",
"time.ticks_diff",
"time.ticks_add",
"time.sleep_ms",
"asyncio.sleep_ms",
"time.ticks_us",
"time.sleep_us",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]