-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
190 lines (170 loc) · 4.56 KB
/
pyproject.toml
File metadata and controls
190 lines (170 loc) · 4.56 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
186
187
188
189
190
# https://docs.astral.sh/uv/reference/settings/
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[project]
name = "tasks"
description = "tasks"
version = "0.0.0"
license = "LGPL-3.0"
readme = "README.md"
requires-python = ">=3.9"
keywords = []
authors = [{ name = "Luis Mayta", email = "luis@hadenlabs.com" }]
classifiers = [
# https://pypi.org/classifiers/
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["boto3>=1.26.130"]
[project.urls]
Source = "https://github.com/InfosisARG/tasks"
Tracker = "https://github.com/InfosisARG/tasks/issues"
[dependency-groups]
dev = [
"bump-pydantic>=0.6.1",
"bump-my-version>=1.1.2",
"greenlet>=2.0.2",
"ipdb>=0.13.13",
"requests",
]
lint = ["ruff>=0.7.4", "pre-commit>=3.5.0"]
types = ["loguru-mypy>=0.0.4", "mypy>=1.14.0", "types-toml>=0.10.8.7"]
test = [
"pytest-mock>=3.14.0",
"pytest>=8.3.4",
"coverage>=7.6.1",
"factory-boy>=3.3.0",
"faker>=22.2.0",
"freezegun>=1.2.2",
"mock>=5.1.0",
"pyhamcrest>=2.0.4",
"pytest>=7.4.0",
"pytest-asyncio>=0.21.1",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.1",
"responses>=0.23.3",
]
test-integration = ["torch>=2.0.1"]
lsp = ["basedpyright>=1.23.1"]
dap = ["debugpy>=1.8.11"]
docs = [
"doc8",
"grip>=4.6.1",
"mkdocs>=1.5.2",
"mkdocs-material>=9.2.6",
"pymdown-extensions>=10.2.1",
]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
# enable subset of "strict"
reportDuplicateImport = true
reportInconsistentConstructor = true
reportInvalidStubStatement = true
reportOverlappingOverload = true
reportPropertyTypeMismatch = true
reportUntypedClassDecorator = true
reportUntypedFunctionDecorator = true
reportUntypedNamedTuple = true
reportUnusedImport = true
# disable subset of "basic"
reportGeneralTypeIssues = false
reportMissingModuleSource = false
reportOptionalCall = false
reportOptionalIterable = false
reportOptionalMemberAccess = false
reportOptionalOperand = false
reportOptionalSubscript = false
reportPrivateImportUsage = false
reportUnboundVariable = false
[tool.ruff]
src = ["src", "tests"]
line-length = 90 # black default
[tool.ruff.lint]
select = [
"E", # pycodestyle (supersedes pep8)
"W", # pycodestyle warnings
# "D", # pydocstyle
"F", # pyflakes
# "UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"I", # isort
"N", # pep8-naming
# "ERA", # eradicate
"C4", # flake8-comprehensions
"A", # flake8-builtins
"Q", # flake8-quotes
"YTT", # flake8-2020
# "ANN", # flake8-annotations
"BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap
"C90", # mccabe
"T10", # flake8-debugger
# "EM", # flake8-errmsg
"ICN", # flake8-import-conventions
# "T20", # flake8-print
# "RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
# "ARG", # flake8-unused-arguments
"PGH", # pygrep-hooks
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"RUF", # ruff-specific rules
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert used
"S105", # hardcoded password
]
[tool.basedpyright]
pythonVersion = "3.11"
venvPath = ".venv"
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = "True"
disallow_untyped_defs = "True"
exclude = ["notebooks"]
strict = true
[[tool.mypy.overrides]]
module = ["dotty_dict.*", "pip_requirements_parser.*", "tomli.*"]
ignore_missing_imports = true
[tool.coverage.run]
omit = ["tests/*"]
[tool.bumpversion]
current_version = "0.0.0"
parse = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
(?:-(?P<pre_release>(alpha|beta|rc))\.(?P<pre_release_number>\d+))?
'''
serialize = [
"{major}.{minor}.{patch}-{pre_release}.{pre_release_number}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = false
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "sonar-project.properties"
search = 'sonar.projectVersion={current_version}'
replace = 'sonar.projectVersion={new_version}'