139 lines
3.1 KiB
TOML
139 lines
3.1 KiB
TOML
[project]
|
|
name = "kwork-api"
|
|
version = "0.1.0"
|
|
description = "Unofficial Kwork.ru API client"
|
|
readme = "README.md"
|
|
license = {text = "MIT"}
|
|
requires-python = ">=3.10"
|
|
authors = [
|
|
{name = "Claw", email = "claw@localhost"}
|
|
]
|
|
keywords = ["kwork", "api", "client", "parsing", "freelance"]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
]
|
|
|
|
dependencies = [
|
|
"httpx[http2]>=0.26.0",
|
|
"pydantic>=2.0.0",
|
|
"structlog>=24.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pytest-html>=4.0.0",
|
|
"respx>=0.20.0",
|
|
"ruff>=0.3.0",
|
|
"python-semantic-release>=9.0.0",
|
|
"pip-audit>=2.7.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://git.much-data.ru/much-data/kwork-api"
|
|
Repository = "https://git.much-data.ru/much-data/kwork-api.git"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/kwork_api"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"respx>=0.20.0",
|
|
"ruff>=0.3.0",
|
|
"pydoc-markdown>=4.8.2",
|
|
"mkdocs>=1.6.1",
|
|
"mkdocs-material>=9.7.6",
|
|
"mkdocstrings>=1.0.3",
|
|
"mkdocstrings-python>=1.11.1",
|
|
"pip-audit>=2.7.0",
|
|
]
|
|
|
|
# ========== Tool Configurations ==========
|
|
|
|
[tool.ruff]
|
|
target-version = "py310"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"UP", # pyupgrade
|
|
]
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["kwork_api"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
skip-magic-trailing-comma = false
|
|
line-ending = "auto"
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.coverage.run]
|
|
source = ["src/kwork_api"]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"raise NotImplementedError",
|
|
"if TYPE_CHECKING:",
|
|
]
|
|
|
|
# ========== Semantic Release ==========
|
|
|
|
[tool.semantic_release]
|
|
version_toml = ["pyproject.toml:project.version"]
|
|
version_variables = ["src/kwork_api/__init__.py:__version__"]
|
|
branch = "main"
|
|
build_command = "uv build"
|
|
commit_parser = "angular"
|
|
tag_format = "v{version}"
|
|
major_on_zero = true
|
|
allow_zero_version = true
|
|
|
|
[tool.semantic_release.commit_parser_options]
|
|
minor_tags = ["feat"]
|
|
patch_tags = ["fix", "perf"]
|
|
breaking_change_tags = ["feat"]
|
|
|
|
[tool.semantic_release.remote]
|
|
type = "gitea"
|
|
domain = "https://git.much-data.ru"
|
|
owner = "much-data"
|
|
repo_name = "kwork-api"
|
|
token = { env = "GH_TOKEN" }
|
|
|
|
[tool.semantic_release.publish]
|
|
dist_glob_patterns = ["dist/*"]
|
|
upload_to_vcs_release = true
|