Skip to content

Commit aedd3cf

Browse files
committed
update
1 parent ec5f8af commit aedd3cf

3 files changed

Lines changed: 43 additions & 34 deletions

File tree

template/README.md.jinja

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,40 @@
1111
![Supported versions](https://img.shields.io/badge/python-{{ python_min_version }}+-blue.svg)
1212
[![Downloads](https://static.pepy.tech/badge/{{ repo_name }})](https://pepy.tech/project/{{ repo_name }})
1313
{%- if copyright_license != "None" and is_github_repo %}
14-
[![license](https://img.shields.io/github/license/{{ github_username }}/{{ repo_name }}.svg)]({{ repository_url }}/blob/master/LICENSE)
14+
[![license](https://img.shields.io/github/license/{{ github_username }}/{{ repo_name }}.svg)]({{ repository_url }}/blob/main/LICENSE)
1515
{%- endif %}
1616
{%- endif %}
1717

1818
{{ description }}
1919

2020
## Installation
2121

22-
#### Using pip
23-
2422
```sh
2523
pip install {{ repo_name }}
2624
```
2725

28-
#### Using uv
29-
3026
```sh
3127
uv add {{ repo_name }}
3228
```
3329

3430
#### From source
3531

3632
```sh
37-
pip install git+{{ repository_url }}.git
38-
# or
3933
uv add git+{{ repository_url }}.git
4034
```
35+
36+
```sh
37+
pip install git+{{ repository_url }}.git
38+
```
39+
40+
{%- if copyright_license != "None" %}
41+
{%- set license_url = "LICENSE" %}
42+
{%- if is_github_repo %}
43+
{%- set license_url = repository_url ~ "/blob/master/LICENSE" %}
44+
{%- elif repository_url %}
45+
{%- set license_url = repository_url ~ "/LICENSE" %}
46+
{%- endif %}
47+
48+
## License
49+
[{{ copyright_license }}]({{ license_url }})
50+
{%- endif %}

template/pyproject.toml.jinja

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,35 @@ python = [
9494
test = "pytest {args}"
9595
coverage = "coverage run -m pytest {args}"
9696

97-
9897
[tool.hatch.build.targets.wheel]
9998
packages = ["{{ package_name }}"]
10099

100+
[tool.coverage.run]
101+
source = ["{{ package_name }}"]
102+
branch = true
103+
104+
[tool.coverage.report]
105+
omit = [
106+
"tests/*",
107+
"tests/**",
108+
]
109+
110+
[tool.mypy]
111+
python_version = "{{ python_min_version }}"
112+
files = ["{{ package_name }}"]
113+
exclude = ["^tests/"]
114+
115+
disallow_untyped_defs = true
116+
disallow_untyped_calls = true
117+
disallow_any_generics = true
118+
no_implicit_optional = true
119+
warn_unused_ignores = true
120+
warn_redundant_casts = true
121+
warn_return_any = true
122+
warn_unused_configs = true
123+
strict_equality = true
124+
ignore_missing_imports = true
125+
101126
[tool.ruff]
102127
line-length = 100
103128

@@ -193,29 +218,3 @@ known-first-party = ["{{ package_name }}", "tests"]
193218

194219
[tool.ruff.lint.pydocstyle]
195220
convention = "google"
196-
197-
[tool.coverage.run]
198-
source = ["{{ package_name }}"]
199-
branch = true
200-
201-
[tool.coverage.report]
202-
omit = [
203-
"tests/*",
204-
"tests/**",
205-
]
206-
207-
[tool.mypy]
208-
python_version = "{{ python_min_version }}"
209-
files = ["interfacy"]
210-
exclude = ["^tests/"]
211-
212-
disallow_untyped_defs = true
213-
disallow_untyped_calls = true
214-
disallow_any_generics = true
215-
no_implicit_optional = true
216-
warn_unused_ignores = true
217-
warn_redundant_casts = true
218-
warn_return_any = true
219-
warn_unused_configs = true
220-
strict_equality = true
221-
ignore_missing_imports = true

template/{{ package_name }}/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)