forked from nsahq/pywrapid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (167 loc) · 4.13 KB
/
pyproject.toml
File metadata and controls
185 lines (167 loc) · 4.13 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
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
[build-system]
requires = ["setuptools>=56", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "pywrapid"
description = "Collection of wrapper libraries for rapid development of python applications"
readme = "README.rst"
requires-python = ">=3.7"
license = { file = "LICENSE" }
keywords = ["web client", "requests", "config", "yaml config", "wrapper"]
authors = [
{ name = "Jonas Werme", email = "jonas.werme@nsahq.se" },
{ name = "Marcus Wallgren", email = "marcus.wallgren@nsahq.se" },
]
maintainers = [
{ name = "Jonas Werme", email = "jonas.werme@nsahq.se" },
{ name = "Marcus Wallgren", email = "marcus.wallgren@nsahq.se" },
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
]
dynamic = ["version"]
# Core dependencies
dependencies = []
[project.optional-dependencies]
yaml = ["pyyaml>=5.1"]
requests = ["requests>=2.25.0"]
httpx = ["httpx>=0.18.0"]
aiohttp = ["aiohttp>=3.7.0"]
jwt = ["pyjwt"]
# Convenience groups
webclient = ["pywrapid[requests]"]
webclient-async = ["pywrapid[webclient-aiohttp]"]
# Complete package groups
standard = ["pywrapid[yaml,webclient,jwt]"] # Backward compatible with original
all = ["pywrapid[yaml,webclient,jwt]"]
qa = ["pywrapid[tests, lint, security]"]
dev = ["pywrapid[all, tests, qa, docs, build]"]
# Development dependencies
tests = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"tox>=4.2.0",
"responses>=0.21.0",
"pytest-asyncio>=0.21.0", # For testing async webclient
"coverage>=7.0.0",
]
lint = [
"black>=23.0.0",
"isort>=5.12.0",
"flake8>=6.0.0",
"flake8-pyproject", # Added plugin
"mypy>=1.0.0",
"pylint>=2.17.0",
"types-PyYAML",
"types-requests",
]
security = [
"bandit",
"safety",
]
docs = [
"sphinx>=7.0.0",
"sphinx_autodoc_typehints>=1.24.0",
"sphinx_rtd_theme>=1.3.0",
"pyyaml>=5.1",
"pyjwt",
]
build = [
"build>=1.0.0",
"twine>=4.0.0",
]
[tool.pywrapid.ci]
python-versions = ["3.9", "3.10", "3.11", "3.12"]
default-python-version = "3.12"
operating-systems = ["ubuntu-latest", "windows-latest", "macos-latest"]
default-os = "ubuntu-latest"
[project.urls]
homepage = "https://github.com/nsahq"
documentation = "https://pywrapid.readthedocs.io/en/latest/"
repository = "https://github.com/nsahq/pywrapid"
changelog = "https://github.com/nsahq/pywrapid"
# [project.gui-scripts]
# spam-gui = "spam:main_gui"
# [project.entry-points."spam.magical"]
# tomatoes = "spam:main_tomatoes"
[pytest.enabler.mypy]
addopts = "--mypy"
[pytest.enabler.cov]
addopts = "--cov"
[tool.setuptools_scm]
version_scheme = "release-branch-semver"
[tool.black]
line-length = 99
include = '\.py$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| config
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 99
known_first_party = "pywrapid"
[tool.mypy]
files = "src/"
ignore_missing_imports = true
disallow_untyped_defs = true
warn_redundant_casts = true
strict_equality = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests"]
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 100
disable = """
W0511,
W3101,
R0917
"""
[tool.pylint.design]
max-args = 15
[tool.flake8]
max-line-length = 100
ignore = ["E203", "W503"]
max-complexity = 11
select = ["B", "C", "E", "F", "W", "T4"]
exclude = [
".git",
"__pycache__",
"docs/src/conf.py",
"old",
"build",
"dist",
"venv",
]
# Define ignores per file pattern
per-file-ignores = [
"src/pywrapid/webclient/*: C901",
"tests/*: F841"
]