-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
116 lines (106 loc) · 2.88 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
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
[tool.poetry]
name = "calldwell"
version = "0.1.0"
description = "Simple test framework for embedded applications"
authors = ["Wojciech Olech <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<=3.12"
pygdbmi = "^0.11.0.0"
paramiko = "^3.3.1"
option = "^2.1.0"
matplotlib = "^3.8.2"
pyside6 = "^6.6.0"
[tool.poetry.group.dev.dependencies]
black = "^23.10.1"
mypy = "^1.6.1"
pylint = "^3.0.2"
ruff = "^0.0.292"
types-paramiko = "^3.3.0.0"
[tool.black]
line-length = 100
[tool.mypy]
python_version = "3.9"
check_untyped_defs = true
show_error_codes = true
[tool.ruff]
line-length = 100
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # mccabe
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"ERA", # eradicate commented out code
"PL", # pylint checks
"FLY", # flynt, static-join-to-f-string
"PERF", # perflint
"RUF", # ruff-specific rules
]
ignore = [
"TD003", # We don't want to link stuff to TODOs
]
[tool.ruff.pylint]
max-args = 6
[tool.pylint.main]
max-line-length = 100
jobs = 0 # auto-detects the amount of available threads to run in parallel
fail-under = '10.0' # we do not allow subpar quality code here
suggestion-mode = 'yes'
max-args = 6
load-plugins = '''pylint.extensions.code_style,
pylint.extensions.comparison_placement,
pylint.extensions.confusing_elif,
pylint.extensions.for_any_all,
pylint.extensions.consider_refactoring_into_while_condition,
pylint.extensions.consider_ternary_expression,
pylint.extensions.mccabe,
pylint.extensions.docstyle,
pylint.extensions.check_elif,
pylint.extensions.empty_comment,
pylint.extensions.eq_without_hash,
pylint.extensions.private_import,
pylint.extensions.redefined_variable_type,
pylint.extensions.no_self_use,
pylint.extensions.overlapping_exceptions,
pylint.extensions.redefined_loop_name,
pylint.extensions.typing,
'''
[tool.pylint.messages]
enable = 'all'
disable = '''logging-fstring-interpolation,
logging-not-lazy,
locally-disabled,
suppressed-message,
import-error,
use-implicit-booleaness-not-comparison-to-zero,
duplicate-code,
'''
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"