-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (137 loc) · 3.64 KB
/
pyproject.toml
File metadata and controls
150 lines (137 loc) · 3.64 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = []
build-backend = "scikit_build_core.build"
[project]
name = "rcs"
version = "0.4.0"
description="Python Interface for libfranka to control the Franka Research 3 Robot"
dependencies = ["websockets>=11.0",
"requests~=2.31",
"numpy",
"typer~=0.9",
"gymnasium~=0.29.1",
"absl-py~=2.1",
"etils[epath]>=1.7.0",
"glfw~=2.7",
"pyopengl",
"pynput~=1.7.7",
"pillow~=10.3",
"python-dotenv==1.0.1",
"opencv-python~=4.10.0.84",
# NOTE: when changing the mujoco version, also change it in requirements_dev.txt
"mujoco==3.2.6",
# NOTE: Same for pinocchio (pin)
"pin==3.7.0",
"tilburg-hand",
"digit-interface",
"ompl>=1.7.0",
]
readme = "README.md"
maintainers = [
{ name = "Tobias Jülg", email = "[email protected]" },
]
authors = [
{ name = "Tobias Jülg", email = "[email protected]" },
{ name = "Pierre Krack", email = "[email protected]" },
]
requires-python = ">=3.10"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Affero General Public License v3 (AGPLv3)",
"Programming Language :: Python :: 3",
]
# until https://github.com/pypa/pip/issues/11440 is resolved
# we use requirements_dev.txt for linter and formatter dependencies
# [project.optional-dependencies]
# dev = [
# "ruff==0.3.2",
# "black==24.1.1",
# "isort==5.13.2",
# "mypy==1.4.1",
# ]
[tool.scikit-build]
build.verbose = true
build.targets = ["_core", "scenes", "rcs"]
logging.level = "INFO"
build-dir = "build"
wheel.packages = ["python/rcs"]
install.components = ["python_package"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
fixable = ["ALL"]
extend-select = [
"B", # flake8-bugbear
# "I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
# "UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
ignore = [
"PLR09", # Too many X
"PLR2004", # Magic comparison
"E741", # ambiguous variable name
"ICN001", # `numpy` should be imported as `np`
"PGH003", # Use specfic rule code when ignoring types issues
# "RET504",
"T201", # print() used
"PLR5501", # elif to reduce indentation
"PT018", # assertion should be broken down into multiple parts
"NPY002",
"G004", # Logging format string does not contain any placeholders
]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
disable = [
"C",
"R",
"fixme",
"logging-fstring-interpolation",
"unspecified-encoding",
"broad-exception-raised",
"broad-exception-caught"
]
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.isort]
profile = "black"
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
pretty = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-vv"
testpaths = [
"python/tests",
]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true
version_files = [
"CMakeLists.txt:VERSION",
"python/rcs/_core/__init__.pyi:__version__",
]