-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
80 lines (73 loc) · 1.95 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "stl_storage"
version = "0.1.0-dev"
description = "STL Storage"
authors = [{ name="Kalle264"}]
requires-python = ">=3.11, <3.12"
readme = "README.md"
[tool.mypy]
python_version = "3.11"
install_types = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"coloredlogs.*",
"fiona.*",
"icecream.*",
"geopandas.*",
"pynmea2.*",
"serial.*",
"shapely.*",
"geographiclib.*",
]
ignore_missing_imports = true
[tool.pylint]
disable = [
"C0103", # Invalid name (e.g., variable/function/class naming conventions)
"C0111", # Missing docstring (in function/class/method)
"C0301", # Line too long (exceeds character limit)
"R0902", # Too many public methods
"R0903", # Too few public methods
"R0904", # Too many public methods
"R0912", # Too many branches
"R0913", # Too many arguments
"R0914", # Too many local variables
"R0915", # Too many statements
"W0102", # Dangerous default value as argument
"W0718", # Catching too general exception
"W1203", # Use % formatting in logging functions
"W1514", # Using open without explicitly specifying an encoding
"W0511", # TODO: comments
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"B", # bugbear
"I", # isort
"RUF", # ruff
"UP", # pyupgrade
"PL", # pylint
"N", # pep8-naming
]
ignore = [
"E501", # Line too long
"N806", # variable should be lowercase
"N813", # CamelCase imported as lower_case
"N818", # enforce CustomError(Exception) name suffix
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many arguments
"PLR2004", # Magic value comparison
"PLR0911", # Too many return statements
]
[tool.ruff.format]
quote-style = "single"