-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
54 lines (42 loc) · 1.69 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spot_skills"
version = "0.0.1"
dependencies = []
authors = [{ name = "Benned Hedegaard", email = "bhedegaa@cs.brown.edu" }]
description = "Motion-planning-based skills for Boston Dynamics' Spot robot."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">= 3.8"
[project.optional-dependencies]
dev = ["ruff", "mypy"]
[tool.hatch.build.targets.wheel]
packages = ["src/spot_skills"] # Include packages at these paths
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = ["ALL"] # Default to all Ruff rules, add ignores as needed
ignore = [
"D203", # Don't place a blank line before a class docstring
"D213", # Don't begin a docstring on its second line
]
unfixable = ["F401"] # Disable 'fix' for unused imports
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true # Allow omission of return type on __init__
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["S101"] # Allow assertions in test files
"**/scripts/*" = ["T201"] # Allow print statements in scripts
[tool.ruff.format] # Use the same settings as Black
quote-style = "double"
indent-style = "space"
[tool.hatch.envs.hatch-static-analysis]
config-path = "none" # Use this Ruff config, not Hatch's
[tool.mypy]
disallow_incomplete_defs = true # Disallow functions with incomplete type annotations
check_untyped_defs = true # Type-check the interior of unannotated functions
warn_return_any = true # Warn when returning type Any from a function that says otherwise
show_error_code_links = true # Show links to error code docs
warn_unused_configs = true # Warn if any per-module sections in the config file go unused