-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
188 lines (162 loc) · 4.42 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[build-system]
requires = [
"setuptools",
"PySide6>=6.8,<6.9"
]
[project]
name = "cruiz"
description = "Conan recipe user interface"
authors = [
{name = "Mark Final", email = "markfinal@hotmail.com"},
]
maintainers = [
{name = "Mark Final", email = "markfinal@hotmail.com"},
]
requires-python = ">=3.9, <3.14"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"version",
"dependencies",
"readme"
]
[project.urls]
Documentation = "https://cruiz.readthedocs.io"
Repository = "https://github.com/markfinal/cruiz"
Issues = "https://github.com/markfinal/cruiz/issues"
[project.gui-scripts]
cruiz = "cruiz.__main__:main"
[tool.setuptools]
packages.find.where = ["src"]
packages.find.include = ["cruiz", "cruiz.*", "cruizlib", "cruizlib.*"]
packages.find.exclude = ["cruiz.resources.*"]
include-package-data = false
[tool.setuptools.package-data]
"cruiz" = ["py.typed"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
readme = {file = "README.md", content-type = "text/markdown"}
[tool.mypy]
python_version = "3.10"
# exclude generated files
exclude = "/pyside6/"
# display as much information as possible when a warning/error occurs
show_error_context = true
show_column_numbers = true
show_error_code_links = true
show_error_end = true
hide_error_codes = false
pretty = true
color_output = true
error_summary = true
show_absolute_path = true
# prefer strict checks
strict = true
# also more checks for untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
# but disable some strict options
# TODO: warn_return_any requires some more work as Any has been used in a few cases of lazyily working out real return types
warn_return_any = false
[[tool.mypy.overrides]]
module = "conan.internal.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "conan.api.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "conans.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "graphviz"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pydevd"
ignore_missing_imports = true
[tool.flake8]
max-line-length = 88
# ignore generated code
exclude = "src/cruiz/pyside6"
# F401:imported but unused
per-file-ignores = [
"__init__.py:F401",
]
extend-select = ["TC", "TC1"] # flake8-type-checking prefer __future__ annotations
[tool.tox]
skipsdist = true
envlist = [
"lint",
"test",
]
[tool.tox.pytest]
testpaths = [
"tests",
]
[tool.tox.env.lint]
deps = [
"-r{toxinidir}/requirements_dev.txt",
]
commands = [
["pip", "install", "-e", "."],
["flake8", "src/cruiz"],
["flake8", "src/cruizlib"],
["flake8", "tests"],
["mypy", "src/cruiz"],
["mypy", "--warn-return-any", "src/cruizlib"],
["mypy", "tests"],
["pylint", "src/cruiz"],
["pylint", "--enable=all", "src/cruizlib"],
["pip", "install", "conan<2"],
["pylint", "--ignore-paths=^src/cruiz/pyside6/.*$,^src/cruiz/workers/api/v2/.*$", "src/cruiz"], # assuming Conan1 APIs
]
[tool.tox.env.test]
deps = [
"-r{toxinidir}/requirements_dev.txt",
]
commands = [
["pip", "install", "-e", "."],
["pytest"],
]
[tool.pylint.main]
ignore-paths = [
"^src/cruiz/pyside6/.*$",
"^src/cruiz/pyside6/.*$,^src/cruiz/workers/api/v1/.*$", # assuming Conan 2 APIs
]
[tool.pylint.format]
max-line-length = 88
[tool.pylint."messages control"]
disable = ["all"]
enable = [
"no-name-in-module",
"no-else-return",
"unspecified-encoding",
"use-implicit-booleaness-not-comparison-to-zero",
"consider-using-f-string",
"useless-suppression",
"protected-access",
"missing-function-docstring",
"super-init-not-called",
"inconsistent-return-statements",
"consider-using-join",
"consider-using-dict-items",
"redefined-argument-from-local",
"redefined-builtin",
"subprocess-run-check",
"possibly-used-before-assignment",
"unused-import",
"unused-argument",
"useless-suppression",
]