-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (140 loc) · 3.78 KB
/
pyproject.toml
File metadata and controls
156 lines (140 loc) · 3.78 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "smct"
dynamic = ["version"]
description = "System Manager Configuration Tool for NXP SM firmware"
readme = "readme.md"
authors = [{ name = "NXP Semiconductors", email = "mcux_config_tools_data_core@NXP1.onmicrosoft.com" }]
license-files = ["LICENSE"]
requires-python = ">=3.10"
dependencies = [
"fastjsonschema>=2.18.0",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Hardware",
"Topic :: Utilities",
]
[project.scripts]
smct = "smct.smct:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["smct*"]
exclude = ["tests*", "test_resources*", "smct.py"]
[project.optional-dependencies]
dev = [
"black>=24.3.0",
"isort>=5.13.2",
"mypy>=1.10",
"ruff>=0.6.0",
"nxp_codecheck<1,>=0.3.1",
]
test = [
"pytest>=7.0",
"pytest-cov>=4.1",
"pytest-xdist>=3.5.0",
]
[tool.setuptools.package-data]
smct = ["../sm_model/**/*.json"]
[tool.setuptools.dynamic]
version = {attr = "smct._version.__version__"}
[project.urls]
Code = "https://github.com/nxp-imx/imx-smct/"
Documentation = "https://github.com/nxp-imx/imx-smct/blob/main/readme.md"
[tool.black]
line-length = 160
target-version = ["py310"]
[tool.isort]
profile = "black"
line_length = 160
force_alphabetical_sort_within_sections = true
src_paths = ["smct", "tests"]
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
warn_incomplete_stub = true
disallow_untyped_defs = true
mypy_path = "stubs"
cache_dir = ".cache/.mypy_cache"
implicit_reexport = false
strict_equality = true
strict_optional = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = [
"fastjsonschema.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 160
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E501"]
[tool.gitcov]
skip-files = ""
repo-path = "."
module = "codecheck"
coverage-report = "reports/coverage.xml"
coverage-cutoff = 0.8
parent-branch = "origin/26.03/integration"
include-merges = 0
verbose = 0
debug = 0
full-file-test = 0
[tool.nxp_codecheck]
git_parent_branch = "origin/26.03/integration"
output_directory = "reports"
default_check_paths = ["smct"]
checkers = [
{ "pytest" = { timeout = 2000 } },
{ "gitcov" = { info_only = true } },
{ "pylint" = { timeout = 300 } },
{ "mypy" = { timeout = 300 } },
# "dependencies",
"ruff",
{ "radon_c" = { info_only = true, timeout = 60 } },
{ "radon_d" = { timeout = 60, info_only = true } },
{ "black" = { timeout = 120 } },
{ "isort" = { timeout = 60 } },
"copyright",
"py_headers",
]
[tool.copyright]
excluded_files = [".*/*", "reports/*"]
[tool.checker_dependencies]
root_package = "smct"
[tool.checker_dependencies.spdx]
"Apache-2.0" = [
"Apache 2.0",
"Apache-2.0 License",
"Apache Software License 2.0",
"Apache License, Version 2.0",
"Apache License 2.0",
"Apache Software License",
]
"BSD-2-Clause" = ["BSD 2-Clause License"]
"BSD-3-Clause" = [
"BSD License",
"BSD 3-Clause",
"BSD (3 clause)",
"BSD 3-Clause License",
"Modified BSD License",
]
"MIT" = ["MIT License", "MIT license"]
"MPL-2.0" = ["MPL 2.0", "Mozilla Public License 2.0 (MPL 2.0)"]
"NLPL" = ["Public domain", "Public Domain"]
"PSF-2.0" = ["PSF", "PSFL", "Python Software Foundation License"]
"LGPL-3.0" = []
"LGPL-2.0" = ["GPL-2.0-or-later"]
"LGPL-2.1" = ["LGPL-2.1-or-later"]
"ISC" = ["ISC license"]
"Unlicense" = ["The Unlicense", "The Unlicense (Unlicense)"]