Skip to content

Commit cb97df7

Browse files
committed
chore: Template upgrade
1 parent 650814f commit cb97df7

File tree

24 files changed

+298
-390
lines changed

24 files changed

+298
-390
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier.
2-
_commit: 1.11.1
2+
_commit: 1.11.10
33
_src_path: gh:pawamoy/copier-uv
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ jobs:
4343
python-version: "3.12"
4444
- os: ubuntu-latest
4545
python-version: "3.13"
46+
- os: ubuntu-latest
47+
python-version: "3.15-dev"
4648

4749
runs-on: ${{ matrix.os }}
50+
continue-on-error: true
4851

4952
steps:
5053
- name: Checkout
@@ -102,7 +105,7 @@ jobs:
102105
- "3.12"
103106
- "3.13"
104107
- "3.14"
105-
- "3.15"
108+
- "3.15-dev"
106109
resolution:
107110
- highest
108111
- lowest-direct
@@ -111,6 +114,7 @@ jobs:
111114
resolution: lowest-direct
112115
- os: windows-latest
113116
resolution: lowest-direct
117+
114118
runs-on: ${{ matrix.os }}
115119
continue-on-error: true
116120

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ uv.lock
2020
# cache
2121
.cache/
2222
.pytest_cache/
23-
.mypy_cache/
2423
.ruff_cache/
2524
__pycache__/

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ Run `make help` to see all the available actions!
2929
3030
## Tasks
3131
32-
The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed,
33-
while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
32+
The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed, while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
3433
3534
If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
3635

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# griffe-autodocstringstyle
22

33
[![ci](https://github.com/mkdocstrings/griffe-autodocstringstyle/workflows/ci/badge.svg)](https://github.com/mkdocstrings/griffe-autodocstringstyle/actions?query=workflow%3Aci)
4-
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://mkdocstrings.github.io/griffe-autodocstringstyle/)
4+
[![documentation](https://img.shields.io/badge/docs-zensical-FF9100.svg?style=flat)](https://mkdocstrings.github.io/griffe-autodocstringstyle/)
55
[![pypi version](https://img.shields.io/pypi/v/griffe-autodocstringstyle.svg)](https://pypi.org/project/griffe-autodocstringstyle/)
66
[![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#griffe-autodocstringstyle:gitter.im)
77

config/mypy.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/ruff.toml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,33 @@
1-
target-version = "py39"
1+
target-version = "py310"
22
line-length = 120
3+
output-format = "concise"
34

45
[lint]
56
exclude = [
67
"tests/fixtures/*.py",
78
]
8-
select = [
9-
"A", "ANN", "ARG",
10-
"B", "BLE",
11-
"C", "C4",
12-
"COM",
13-
"D", "DTZ",
14-
"E", "ERA", "EXE",
15-
"F", "FBT",
16-
"G",
17-
"I", "ICN", "INP", "ISC",
18-
"N",
19-
"PGH", "PIE", "PL", "PLC", "PLE", "PLR", "PLW", "PT", "PYI",
20-
"Q",
21-
"RUF", "RSE", "RET",
22-
"S", "SIM", "SLF",
23-
"T", "T10", "T20", "TCH", "TID", "TRY",
24-
"UP",
25-
"W",
26-
"YTT",
27-
]
9+
select = ["ALL"]
2810
ignore = [
2911
"A001", # Variable is shadowing a Python builtin
30-
"ANN101", # Missing type annotation for self
31-
"ANN102", # Missing type annotation for cls
3212
"ANN204", # Missing return type annotation for special method __str__
3313
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
3414
"ARG005", # Unused lambda argument
3515
"C901", # Too complex
3616
"D105", # Missing docstring in magic method
3717
"D417", # Missing argument description in the docstring
3818
"E501", # Line too long
19+
"EM101", # String literal when raising exception
20+
"EM102", # f-string when raising exception
3921
"ERA001", # Commented out code
22+
"FIX", # TODO, FIXME, etc.
4023
"G004", # Logging statement uses f-string
4124
"PLR0911", # Too many return statements
4225
"PLR0912", # Too many branches
4326
"PLR0913", # Too many arguments to function call
4427
"PLR0915", # Too many statements
4528
"SLF001", # Private member accessed
29+
"TD002", # Missing author in TODO
30+
"TD003", # Missing issue link for TODO
4631
"TRY003", # Avoid specifying long messages outside the exception class
4732
]
4833

config/ty.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[src]
2+
exclude = ["tests/fixtures"]
3+
4+
[terminal]
5+
error-on-warning = true
6+
output-format = "concise"

config/vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
"name": "docs",
2424
"type": "debugpy",
2525
"request": "launch",
26-
"module": "mkdocs",
26+
"module": "zensical",
2727
"justMyCode": false,
2828
"args": [
2929
"serve",
30-
"-v"
3130
]
3231
},
3332
{

config/vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"**/.venvs*/**": true,
55
"**/venv*/**": true
66
},
7-
"mypy-type-checker.args": [
8-
"--config-file=config/mypy.ini"
9-
],
107
"python.testing.unittestEnabled": false,
118
"python.testing.pytestEnabled": true,
129
"python.testing.pytestArgs": [
@@ -19,6 +16,7 @@
1916
"ruff.lint.args": [
2017
"--config=config/ruff.toml"
2118
],
19+
"ty.configurationFile": "config/ty.toml",
2220
"yaml.schemas": {
2321
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
2422
},

0 commit comments

Comments
 (0)