-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (81 loc) · 2.41 KB
/
pyproject.toml
File metadata and controls
97 lines (81 loc) · 2.41 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
[project]
name = "{{ cookiecutter.project_slug }}"
version = "0.0.0"
description = "{{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}"
authors = [
{ name = "{{ cookiecutter.company_name }}", email = "Python@{{ cookiecutter.company_domain }}" }
]
dependencies = []
readme = "README.md"
requires-python = ">={{ cookiecutter.python_version }}"
[project.urls]
Homepage = "https://{{ cookiecutter.company_domain }}"
[tool.uv.pip]
universal = true
generate-hashes = true
require-hashes = true
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.mypy]
plugins = []
[tool.pytest.ini_options]
addopts = "--cov=src/{{ cookiecutter.project_slug }} --cov-append --no-cov-on-fail --cov-fail-under=0 --cov-report=html --cov-report=xml --cov-report=term-missing"
pythonpath = ['src']
markers = [
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"slow: marks tests as slow tests (deselect with '-m \"not slow\"')",
]
[tool.uv]
managed = true
[dependency-groups]
dev = [
"coverage",
"pre-commit",
"pydantic>=2.0.0",
"pyright",
"pytest",
"pytest-cov",
"pytest-mock",
"python-semantic-release",
"PyYAML>=6.0.1",
"refurb",
]
[tool.coverage.report]
fail_under = 80
[tool.pyright]
include = ["src", "tests"]
exclude = ["**/__pycache__"]
typeCheckingMode = "standard"
[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version",
]
version_variables = [
"src/{{ cookiecutter.project_slug }}/__init__.py:__version__:nf",
"README.md:docker run {{ cookiecutter.github_org }}/{{ cookiecutter.project_slug }}:nf",
]
changelog_file = "CHANGELOG.md"
commit_parser = "conventional"
allow_zero_version = true
commit_author = "{{ cookiecutter.company_name }} Automation <automation@{{ cookiecutter.company_domain }}>"
commit_message = "chore(release): {version}"
tag_format = "v{version}"
[tool.semantic_release.branches.release]
match = "main"
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.semantic_release.remote]
name = "origin"
type = "github"
token = { env = "GH_TOKEN" }
ignore_token_for_push = false
insecure = false
[tool.ruff]
target-version = "py{{ cookiecutter.python_version.replace('.', '') }}"