-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
68 lines (61 loc) · 1.2 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
[build-system]
requires = ["setuptools>=59.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
addopts = "--cov=gs --cov=obc/tools/python -v"
testpaths = ["python_test"]
[tool.mypy]
exclude = [
"libs/*",
"cmake/*",
"build*",
"python_test/*",
"test/*"]
mypy_path = "gs:obc/tools/python"
strict = true
[[tool.mypy.overrides]]
module = "skyfield.*"
ignore_missing_imports = true
[tool.ruff]
include = ["pyproject.toml", "gs/**/*.py", "obc/tools/python/**/*.py"]
exclude = [
"libs/*",
"cmake/*",
"build*",
"test/*"]
target-version = "py310"
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pep8-naming
"N",
# flake8-annotations
"ANN",
# flake8 builtin shadowing
"A",
# Documentation
"D213", "D101", "D102", "D103", "D105"
]
ignore = ["ANN101", "ANN102"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"