-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (105 loc) · 2.97 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (105 loc) · 2.97 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "oresat-c3"
description = "OreSat C3 OLAF app"
readme = "README.md"
requires-python = ">=3.9"
license = "GPL-3.0-or-later"
classifiers = [
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Embedded Systems",
]
dynamic = ["version"]
dependencies = [
"bitstring",
"cfdp-py~=0.6.0",
"dataclasses-json",
"gpiod",
"fastcrc~=0.3",
"numpy>=1.19.5",
"oresat-configs>=1.2.0",
"oresat-olaf>=3.7.4",
"scipy>=1.6.0",
"skyfield>=1.54",
"smbus2",
"spacepackets>=0.30.1",
"ccsds-cop>=0.0.0",
"typing-extensions>=4.13.0"
]
[dependency-groups]
dev = [
"build",
"pylama[all,toml]",
"ruff",
"sphinx",
"sphinx-rtd-theme",
"sphinxcontrib-mermaid",
]
[project.scripts]
oresat-c3 = "oresat_c3.__main__:main"
[tool.setuptools.packages.find]
exclude = ["docs*", "tests*", "scripts*"]
[tool.setuptools.package-data]
"*" = ["*.html"]
[tool.setuptools_scm]
write_to = "oresat_c3/_version.py"
[tool.ruff]
line-length = 100
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
select = [
"A",
"C4",
"E",
"F",
"I",
"PERF",
"RUF",
"W",
]
[tool.pylama]
format = "pylint"
skip = "*/.tox/*,*/.env/,*/.git/*,*/.github/*,*/build/*,.direnv/*"
linters = "pycodestyle,pyflakes,pylint,mccabe,mypy,radon"
# E402: Module level import not at top of file
# C901: Function is too complex
# C0103: Arguments are not snake_case naming style or too short
# E203: Whitespace before ':' (black does this)
# R0912: Too many branches
# R0915: Too many statements
# R0901: Function is too complex
# R0914: Too many local variables
# R1716: Simplify chained comparison between the operands
# C0413: Imports not at top of module
# C0206: Consider iterating dictionaries with .items()
# R1716: Simplify chained comparison between the operands
# W1514: Using open without explicitly specifying an encoding
# R0902: Too many instance attributes
# R0913: Too many arguments
# W0707: Consider explicitly re-raising
# R1732: Consider using 'with' for resource-allocating operations
# R0903: Too few public methods
# R0904: Too many public methods
ignore = "E402,C901,C0103,E203,R0912,R0915,R901,R901,R0914,C0413,C0206,R1716,W1514,R0902,R0913,W0707,R1732,R0903,R0904"
max_line_length = 100
[[tool.pylama.files]]
path = "*/__init__.py"
# W0611: Imported but unused
# C0114: Missing module docstring
ignore = "W0611,C0114"
[tool.mypy]
ignore_missing_imports = true
[[tool.pylama.files]]
path = "tests/*"
# W0212: Access to a protected member of a class
ignore = "W0212"
[[tool.mypy.overrides]]
module = "canopen,olaf,oresat_configs,spacepackets"
ignore_missing_imports = true