-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (88 loc) · 2.23 KB
/
pyproject.toml
File metadata and controls
105 lines (88 loc) · 2.23 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python-usajobsapi"
description = "A Python wrapper for the USA Jobs REST API."
readme = "README.md"
requires-python = ">=3.11"
keywords = ["api", "wrapper"]
license = {file = "LICENSE"}
dependencies = [
"pydantic>=2.12.5",
"requests>=2.32.5",
]
dynamic = ["version"]
[project.optional-dependencies]
build = ["uv ~=0.9.16"]
[project.scripts]
usajobsapi = "usajobsapi.cli:main"
[project.urls]
Homepage = "https://paddy74.github.io/python-usajobsapi/"
Changelog = "https://paddy74.github.io/python-usajobsapi/about/changelog/"
Documentation = "https://paddy74.github.io/python-usajobsapi/"
Source = "https://github.com/paddy74/python-usajobsapi/"
[tool.hatch.version]
path = "usajobsapi/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["usajobsapi"]
[dependency-groups]
dev = [
"basedpyright>=1.35.0",
"prek>=0.2.19",
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"ruff>=0.14.8",
]
docs = [
"mkdocs-extrafiles>=1.0.1",
"mkdocs-gen-files>=0.6.0",
"mkdocs-literate-nav>=0.6.2",
"mkdocs-section-index>=0.3.10",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=1.0.0",
]
[tool.semantic_release]
branch = "main"
build_command = """
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
"""
version_variables = ["usajobsapi/_version.py:__version__"]
commit_message = "chore: release v{version}"
allow_zero_version = true
major_on_zero = true
[tool.semantic_release.commit_parser_options]
patch_tags = ["fix", "build", "perf"]
[tool.basedpyright]
include = ["usajobsapi", "tests", "mkdocs"]
typeCheckingMode = "standard"
venvPath = "."
venv = ".venv"
pythonVersion = "3.11"
pythonPlatform = "All"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
ignore = ["E203", "E501"]
select = ["C", "E", "F", "I", "W", "B"]
extend-select = ["UP"] # pyupgrade
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["usajobsapi"]
relative_files = true
[tool.coverage.paths]
source = [
"usajobsapi",
"*/site-packages/usajobsapi",
]
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = true