-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
84 lines (74 loc) · 2.7 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
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "oresat-configs"
description = "OreSat mission configurations"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "GPL-3.0"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"canopen",
"dacite",
"pyyaml",
"tabulate",
]
dynamic = ["version"]
[project.scripts]
oresat-configs = "oresat_configs.__main__:oresat_configs"
oresat-gen-fw-files = "oresat_configs.scripts.gen_fw_files:gen_fw_files"
oresat-gen-dcf = "oresat_configs.scripts.gen_dcf:gen_dcf"
oresat-print-od = "oresat_configs.scripts.print_od:print_od"
oresat-sdo-transfer = "oresat_configs.scripts.sdo_transfer:sdo_transfer"
oresat-gen-kaitai = "oresat_configs.scripts.gen_kaitai:gen_kaitai"
oresat-gen-xtce = "oresat_configs.scripts.gen_xtce:gen_xtce"
[tool.setuptools.packages.find]
exclude = ["docs*", "tests*"]
[tool.setuptools.package-data]
"*" = ["*.yaml", "*.csv"]
[tool.setuptools_scm]
write_to = "oresat_configs/_version.py"
[tool.black]
line_length = 100
[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
# R1702: Too many nested blocks
# E0401: Cannot find implementation or library stub for module named
# R0902: Too many instance attributes
# W0511: TODOs or FIXMEs
ignore = "E402,C901,C0103,E203,R0912,R0915,R901,R901,R0914,C0413,C0206,R1716,W1514,R1702,E0401,R0902,W0511"
max_line_length = 100
[[tool.pylama.files]]
path = "*/__init__.py"
# W0611: Imported but unused
# R0903: Too few public methods
ignore = "W0611,R0903"
[[tool.mypy.overrides]]
module = "canopen,canopen.objectdictionary,canopen.objectdictionary.datatypes"
ignore_missing_imports = true
[tool.isort]
profile = "black"
line_length = 100