-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (54 loc) · 1.53 KB
/
pyproject.toml
File metadata and controls
63 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
58
59
60
61
62
63
[tool.ruff]
extend-exclude = ["src/rp2*/lib/", "src/sandbox/"]
line-length = 100
# [tool.ruff.lint]
# select = ["E4", "E7", "E9", "F", "W", "C", "D", "I", "N"]
[tool.ruff.lint]
select = [
# Default rules
"E4",
"E7",
"E9",
"F",
# Additional rules
"I", # Import order
"D", # Docstrings
"D401", # First line should be in imperative mood
"D213", # Multi-line docstring summary should start at the second line
"C", # Complexity
]
ignore = [
"D100", # Missing docstring in public module
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D417", # Missing argument descriptions in the docstring
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"**/*/__init__.py" = ["D"]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
pythonpath = "src"
[tool.poetry]
name = "phrottle"
version = "0.1.0"
description = "A model railway controller for the Pico"
authors = ["rollcloud <rollcloud@gmail.com>"]
license = "License :: OSI Approved :: GNU Affero General Public License v3"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.11"
pyyaml = "^6.0.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
ruff = "^0.11.0"
micropython-rp2-rpi_pico2_w-stubs = "^1.23.0"
mpremote = "^1.23.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"