-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (80 loc) · 3.31 KB
/
pyproject.toml
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
[tool.poetry]
name = "roboregress"
version = "0.1.0"
description = "A system for numerical modeling different configurations of a lumber processing robot."
authors = ["urbanmachine <[email protected]>"]
license = "Proprietary"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
scipy = "^1.8.1"
open3d = "0.16.0"
pydantic = "^1.9.1"
glfw = "^2.5.3"
bokeh = "^2.4.3"
tqdm = "^4.64.0"
types-pyyaml = "^6.0.12.20240917"
[tool.poetry.dev-dependencies]
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
mypy = "^1.9.0"
ruff = "^0.3.7"
cruft = "^2.15"
# Remove darglint once ruff adds support for the rules.
# Tracking: https://github.com/astral-sh/ruff/issues/458
darglint = "^1.8.1"
[tool.poetry.scripts]
run_sim = "roboregress.scripts.run_sim:main"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.isort]
profile = "black"
[tool.mypy]
strict = true
ignore_missing_imports = true
disallow_subclassing_any = false
implicit_reexport = true
# We can't add annotations to decorators from other libraries, making this
# check not very useful
disallow_untyped_decorators = false
[tool.ruff]
exclude = [".docker_cache", "firmware"]
target-version = "py310"
[tool.ruff.lint]
# Rules documentation: https://docs.astral.sh/ruff/rules/#flake8-bandit-s
select = ["ALL"]
ignore = [
# Partially disabled checks libraries
"N818", # pep8-naming: Requires the word 'error' in all exception types
"S101", "S3", "S6", # flake8-bandit rules
"PT007", "PT011", "PT012", "PT018", "PT019", # flake8-pytest-styles rules
"RET503", "RET504", "RET505", "RET506", "RET507", # flake8-return
"SIM105",
"TD002", "TD003", # flake8-todos: disable strict rules
"FIX", # flake8-fixme: this disallows todo statements entirely
"PGH003", # pygrep-hooks: disallows '# type: ignore' statements
"PLR0913", "PLR2004", # pylint: A few rules that are too aggressive
"TRY003", "TRY004", "TRY300", "TRY301", "TRY400", # tryceratops
"NPY002", # Deprecated random number generation (let's fix this over time)
"PERF203", # This perf improvement is fixed in python 3.11, so no reason to frett
"RUF005", "RUF012", # ruff specific rules
# All fully disabled checks libraries
"D", # pydocstyle: disabled, as it's too aggressive
"ANN", # flake8-annotations: disables, it's too aggressive and we have mypy
"FBT", # flake8-boolean-trap: disabled, it doesn't allow bools as positional args
"A", # flake8-builtins: disabled, would be nice to work towards reenabling
"COM", # flake8-commas: disabled, adds commas where it's silly to do so
"CPY", # flake8-copyright: disabled, we don't put copyright headers in every file
"EM", # flake8-errmsg: disabled, doesn't allow fstrings when making error messages
"G", # flake8-logging-format: disabled, disallows fstrings in logging
"INP", # flake8-no-pep420: disabled, disallows namespace packages
"TID", # flake8-tidy-imports: disabled, in the future we should work towards this
"TCH", # flake8-type-checking: disabled, in the future we should work towards this
"ARG", # flake8-unused-arguments: disabled, too many false positives
"ISC001", # ruff throws warnings if we use its formatter but also have this enabled
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"test*" = ["S101", "SLF001", "ERA001"]
"conftest.*" = ["SLF001"]