-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (136 loc) · 2.74 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (136 loc) · 2.74 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "python-payway"
version = "0.0.10"
description = "Python client for working with Westpac's PayWay REST API"
authors = [
{ name = "Ben Napper", email = "reppan197@gmail.com" }
]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
keywords = ["payway", "westpac", "api", "client"]
dependencies = [
"requests>=2.20.0",
]
[project.urls]
Homepage = "https://github.com/napper1/python-payway"
Repository = "https://github.com/napper1/python-payway"
Issues = "https://github.com/napper1/python-payway/issues"
[project.optional-dependencies]
dev = [
"pre-commit>=3.5.0",
"ruff==0.6.6",
"mypy>=0.971",
]
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
ignore_missing_imports = true
allow_redefinition = false
warn_unreachable = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
[tool.ruff]
fix = true
line-length = 131
target-version = "py311"
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"DJ",
"EM",
"EXE",
"FA",
'ISC',
"ICN",
"G",
'INP',
'PIE',
"T20",
'PYI',
'PT',
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"INT",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
"PERF",
"RUF",
]
ignore = ["ANN101", "ANN102", "COM812", "ISC001"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I"]
[tool.ruff.lint.mccabe]
max-complexity = 5
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
exclude = ["__init__.py"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.pyright]
typeCheckingMode = "strict"
[tool.ty.environment]
extra-paths = []
python-version = "3.11"
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
addopts = "-v -ra -q"
filterwarnings = [
"ignore:.*defines default_app_config.*",
"ignore:The providing_args argument is deprecated..*",
"ignore::DeprecationWarning",
]
[tool.bandit]
exclude_dirs = ["tests", "migrations"]
tests = ["B201", "B301"]
[dependency-groups]
dev = [
"mypy>=0.971",
"pre-commit>=3.5.0",
"pytest>=8.3.5",
"ruff>=0.6.6",
"ty>=0.0.1a33",
]