-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (61 loc) · 1.52 KB
/
pyproject.toml
File metadata and controls
74 lines (61 loc) · 1.52 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
[tool.poetry]
name = "asknews"
version = "0.7.6"
description = "Python SDK for AskNews"
authors = ["Emergent Methods <contact@emergentmethods.ai>"]
packages = [{ include = "asknews_sdk" }]
license = "MIT"
readme = "README.md"
repository = "https://github.com/emergentmethods/asknews-python-sdk"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
orjson = "^3.9.10"
pydantic = "^2.5.3"
httpx = "^0.25.0"
asgiref = "^3.7.2"
cryptography = "^42.0.7"
[tool.poetry.group.dev.dependencies]
mypy = "^1.2.0"
ruff = "^0.4.3"
pytest = ">=7.3.1,<9.0.0"
pytest-asyncio = ">=0.21.2,<0.24.0"
coverage = "^7.2.7"
pre-commit = "^3.3.2"
gitlint = "^0.19.1"
commitizen = "^3.25.0"
respx = "^0.21.1"
polyfactory = "^2.16.0"
[tool.ruff]
line-length = 100
exclude = ["tests"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "C", "B"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.mypy]
plugins = "pydantic.mypy"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "-s -p no:warnings"
testpaths = ["tests"]
asyncio_mode = "auto"
log_cli = "True"
log_auto_indent = "False"
[tool.coverage.run]
source = ["asknews_sdk"]
[tool.coverage.report]
ignore_errors = "true"
[tool.coverage.xml]
output = "coverage.xml"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "poetry"
update_changelog_on_bump = true
bump_message = "chore(release): Release $new_version"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"