forked from i2rt-robotics/i2rt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (87 loc) · 2.13 KB
/
pyproject.toml
File metadata and controls
94 lines (87 loc) · 2.13 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["flit_core >= 3.4"]
build-backend = "flit_core.buildapi"
[project]
name = "i2rt"
version = "0.0.1"
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["description"]
dependencies = [
"dm-env==1.6",
"evdev==1.9.2 ; sys_platform == 'linux'",
"mujoco==3.3.5",
"numpy==2.2.6",
"portal==3.7.3",
"pygame==2.6.1",
"python-can==4.5.0",
"qpsolvers[quadprog]==4.7.1",
"ruckig==0.15.3",
"threadpoolctl==3.6.0",
"tyro==0.9.26",
]
[project.optional-dependencies]
dev = [
"pytest==8.4.0",
]
[tool.flit.module]
name = "i2rt"
[tool.ruff]
line-length = 119 # Set the max line length to 119 characters.
lint.select = [
"ANN", # Annotations.
"B", # bugbear rules
# "D", # docstring rules.
"E", # pycodestyle errors.
"F", # Pyflakes rules.
"I", # Import sorting.
"PLC", # Pylint convention warnings.
"PLE", # Pylint errors.
"PLR", # Pylint refactor recommendations.
"PLW", # Pylint warnings.
"RUF" # Ruff rules.
]
lint.ignore = [
"ANN101",
"ANN102",
"ANN204",
"ANN401",
"E741", # Ambiguous variable name. (l, O, or I)
"F841",
"E402",
"E501",
"PLR1722",
"PLR2004", # Magic value used in comparison.
"PLR0915", # Too many statements.
"PLR0913", # Too many arguments.
"PLC0414", # Import alias does not rename variable. (this is used for exporting names)
"PLC1901", # Use falsey strings.
"PLR0911", # Too many return statements.
"PLR0912", # Too many branches.
"PLW0603", # Global statement updates are discouraged.
"PLW2901", # For loop variable overwritten.
"RUF005",
"RUF009",
"RUF012"
]
lint.extend-select = ["E501"]
lint.exclude = ["*.ipynb"]
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = false
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_configs = true
exclude = ["scripts/"]
[tool.coverage.report]
exclude_also = [
"raise NotImplementedError",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"def __repr__",
]
omit = [
"*exceptions.py",
]