-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
83 lines (71 loc) · 2.34 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "riberry-robot"
version = "0.0.1"
description = "Riberry: Robot Intelligent Binary Enhancement Resource Revolutionary Yield"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name="Iori Yanokura", email="[email protected]" },
{ name="Naoya Yamaguchi", email="[email protected]" },
{ name="Aoi Nakane", email="[email protected]" },
]
keywords = ["riberry", "robotics", "automation", "robot module"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
[project.urls]
"Homepage" = "https://github.com/iory/riberry"
"Repository" = "https://github.com/iory/riberry"
[tool.setuptools]
packages = { find = {} }
[tool.ruff]
target-version = "py38"
line-length = 90
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
[tool.ruff.lint]
select = [
# "ANN", # annotations
"B", # bugbear
"C", # comprehensions
"E", # style errors
"F", # flakes
"I", # import sorting
"RUF", # ruff specific rules
"UP", # upgrade
"W", # style warnings
"YTT", # sys.version
"ISC002",
"NPY201",
"TID251"
]
ignore = [
"C901", # Comprehension is too complex (11 > 10)
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"E501", # Line too long ({width} > {limit} characters)
"B904", # raise ... from err
"B905", # zip() without an explicit strict= parameter
"RUF005", # recommends non-type-aware expansion
]
# don't allow implicit string concatenation
flake8-implicit-str-concat = {"allow-multiline" = false}
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
order-by-type = false
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"IPython.embed".msg = "you forgot to remove a debug embed ;)"
"numpy.empty".msg = "uninitialized arrays are haunted try numpy.zeros"
[tool.typos]
default.extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$", # spellchecker:disable-line
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on" # spellchecker:<on|off>
]
default.extend-ignore-identifiers-re = [
# Add individual words here to ignore them
]