-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
91 lines (80 loc) · 2.71 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
85
86
87
88
89
90
91
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "oresat-olaf"
description = "Application framework for all OreSat Linux boards"
readme = "README.rst"
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",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = [
"canopen",
"flask",
"loguru",
"psutil",
"python-can>=4.3.0",
"oresat-configs",
]
dynamic = ["version"]
[tool.setuptools.packages.find]
exclude = ["docs*", "tests*"]
[tool.setuptools.package-data]
"*" = ["*.html", "*.ico"]
[tool.setuptools_scm]
write_to = "olaf/_version.py"
[tool.black]
line_length = 100
[tool.pylama]
format = "pylint"
skip = "*/.tox/*,*/.env/,*/.git/*,*/.github/*,*/build/*"
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
# W0102: Dangerous default value as argument
# W0107: Unnecessary pass statement
# 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,W0102,W0107,R0903,R0904"
max_line_length = 100
[[tool.pylama.files]]
path = "*/__init__.py"
# W0611: Imported but unused
ignore = "W0611"
[[tool.pylama.files]]
path = "tests/*"
# W0212: Access to a protected member of a class
ignore = "W0212"
[[tool.pylama.files]]
path = "*/_version.py"
# C0114: Missing module docstring
ignore = "C0114"
[[tool.mypy.overrides]]
module = "canopen,oresat_configs,psutil,canopen.sdo,canopen.sdo.exceptions,canopen.objectdictionary"
ignore_missing_imports = true
[tool.isort]
profile = "black"
line_length = 100