This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
95 lines (83 loc) · 2.1 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
91
92
93
94
95
[tool.poetry]
name = "j5"
version = "1.1.2"
description = "j5 Robotics Framework"
authors = ["j5 contributors <j5api@googlegroups.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/srobo/j5"
homepage = "https://studentrobotics.org/"
documentation = "https://j5.readthedocs.io/"
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Typing :: Typed",
"Topic :: Education",
]
[tool.poetry.dependencies]
python = "^3.7"
pyusb = "^1.0"
pyserial = "^3.4"
[tool.poetry.dev-dependencies]
black = "^23"
mypy = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
setuptools = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"
[tool.black]
line-length = 120
target-version = ['py37']
[tool.mypy]
mypy_path = "stubs"
warn_unused_ignores = true
warn_return_any = true
show_error_codes = true
strict_optional = true
no_implicit_optional = true
disallow_any_unimported = true
disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
[tool.ruff]
target-version = "py37"
select = [
"A",
"ANN",
"B",
"BLE",
"C4",
"DJ",
"DTZ",
"E",
"F",
"FBT",
"I",
"N",
"S",
"T10",
"UP",
"W",
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"B009", # Do not call `getattr` with a constant attribute value.
"FBT001", # Boolean positional arg in function definition
"FBT002", # Boolean default value in function definition
"FBT003", # Boolean positional value in function call
"N803", # Argument name should be lowercase (for USB names)
"S101", # S101 Use of `assert` detected
]
line-length = 120