-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (115 loc) · 3.38 KB
/
pyproject.toml
File metadata and controls
131 lines (115 loc) · 3.38 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pymqrest"
version = "1.2.3"
description = "Python wrapper for the IBM MQ REST API"
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [{ name = "Phillip Moore", email = "w.phillip.moore@gmail.com" }]
requires-python = ">=3.12,<4.0"
keywords = ["ibm", "mq", "mqsc", "rest-api", "messaging", "queue-manager"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Networking",
"Typing :: Typed",
]
dependencies = [
"requests",
]
[project.urls]
Homepage = "https://github.com/mq-rest-admin-project/mq-rest-admin-python"
Documentation = "https://mq-rest-admin-project.github.io/mq-rest-admin-python/"
Repository = "https://github.com/mq-rest-admin-project/mq-rest-admin-python"
Issues = "https://github.com/mq-rest-admin-project/mq-rest-admin-python/issues"
[dependency-groups]
dev = [
"ruff",
"mypy",
"ty",
"pytest",
"pytest-cov",
"pip-audit",
"pip-licenses",
"types-requests",
]
docs = [
"mike",
"mkdocs-material",
"mkdocstrings[python]",
]
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pymqrest = ["py.typed", "mapping-data.json"]
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src", "tests"]
extend-exclude = ["docs/archive", "scripts"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E501", # Line too long (handled by formatter)
"D203", # Prefer D211 (no blank line before class)
"D213", # Prefer D212 (summary on first line)
"COM812", # Handled by Ruff formatter; avoid formatter conflicts.
]
[tool.ruff.lint.isort]
known-first-party = ["pymqrest", "examples"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
docstring-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"D1", # Tests do not require docstrings.
"S101", # Pytest assert style is expected.
"S105", # Hardcoded test passwords are expected in test fixtures.
"S106", # Hardcoded test password arguments are expected in test fixtures.
]
"examples/**/*.py" = [
"INP001", # Example scripts are not a package; no __init__.py needed.
"T201", # Example scripts use print for user-facing output.
]
[tool.ruff.lint.pylint]
max-args = 7
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = "-v"
markers = [
"integration: integration tests (require MQ_REST_ADMIN_RUN_INTEGRATION=1)",
]
[tool.uv.sources]