-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
137 lines (123 loc) · 3.09 KB
/
pyproject.toml
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
[tool.poetry]
name = "pyle38"
version = "0.14.0"
description = "Async python client for Tile38"
authors = ["Benjamin Ramser <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/iwpnd/pyle38"
repository = "https://github.com/iwpnd/pyle38"
keywords = ["tile38", "async", "client"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Typing :: Typed"]
include = ["LICENSE"]
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.9.2"
redis = "^5.2.0"
[tool.poetry.group.dev.dependencies]
types-redis = "^4.6.0.20240903"
pytest = "^8.3.3"
pre-commit = "^4.0.1"
pytest-asyncio = "^0.24.0"
gitlint = "^0.19.0"
poethepoet = "^0.30.0"
pytest-cov = "^6.0.0"
mypy = "^1.13.0"
python-semantic-release = "^9.14.0"
ruff = "^0.7.4"
[tool.semantic_release]
version_variables = [
"pyle38/__init__.py:__version__",
"pyproject.toml:version"
]
commit_subject = "ci: release v{version}"
branch = "main"
upload_to_release = true
build_command = "pip install poetry && poetry build"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf", "docs", "refactor"]
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"chore:",
"chore\\(release\\):",
"chore\\(deps-dev\\):",
"build\\(deps-dev\\):",
"build\\(deps\\):",
"ci:",
"docs:",
]
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[mypy]
python_version = 3.10
ignore_missing_imports = true
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F"]
extend-select = ["I"]
ignore = ["E501"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.poe.tasks]
test = "poetry run pytest -vv --asyncio-mode=auto -s tests/"
test-cov = "poetry run pytest -vv --asyncio-mode=auto -s --cov=pyle38 tests/ --cov-report xml:/home/runner/coverage.xml"
test-single = "poetry run pytest -vv --asyncio-mode=auto -s"
mypy = "poetry run mypy --ignore-missing-imports --config-file pyproject.toml"
lint = "ruff check ."
up = "docker-compose up"
down = "docker-compose down"