-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
139 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 1.4.0 | ||
_commit: 1.4.8 | ||
_src_path: gh:pawamoy/copier-uv | ||
author_email: [email protected] | ||
author_fullname: Timothée Mazzucotelli | ||
|
@@ -13,7 +13,7 @@ insiders_email: [email protected] | |
insiders_repository_name: griffe-warnings-deprecated | ||
project_description: Griffe extension for `@warnings.deprecated` (PEP 702). | ||
project_name: griffe-warnings-deprecated | ||
public_release: false | ||
public_release: true | ||
python_package_command_line_name: '' | ||
python_package_distribution_name: griffe-warnings-deprecated | ||
python_package_import_name: griffe_warnings_deprecated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
/.pdm-build/ | ||
/htmlcov/ | ||
/site/ | ||
uv.lock | ||
|
||
# cache | ||
.cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
target-version = "py38" | ||
target-version = "py39" | ||
line-length = 120 | ||
|
||
[lint] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,13 @@ | |
from contextlib import contextmanager | ||
from importlib.metadata import version as pkgversion | ||
from pathlib import Path | ||
from typing import TYPE_CHECKING, Iterator | ||
from typing import TYPE_CHECKING | ||
|
||
from duty import duty, tools | ||
|
||
if TYPE_CHECKING: | ||
from collections.abc import Iterator | ||
|
||
from duty.context import Context | ||
|
||
|
||
|
@@ -53,8 +55,8 @@ def changelog(ctx: Context, bump: str = "") -> None: | |
ctx.run(tools.git_changelog(bump=bump or None), title="Updating changelog") | ||
|
||
|
||
@duty(pre=["check_quality", "check_types", "check_docs", "check_dependencies", "check-api"]) | ||
def check(ctx: Context) -> None: # noqa: ARG001 | ||
@duty(pre=["check-quality", "check-types", "check-docs", "check-api"]) | ||
def check(ctx: Context) -> None: | ||
"""Check it all!""" | ||
|
||
|
||
|
@@ -121,12 +123,13 @@ def docs_deploy(ctx: Context) -> None: | |
with material_insiders() as insiders: | ||
if not insiders: | ||
ctx.run(lambda: False, title="Not deploying docs without Material for MkDocs Insiders!") | ||
origin = ctx.run("git config --get remote.origin.url", silent=True) | ||
origin = ctx.run("git config --get remote.origin.url", silent=True, allow_overrides=False) | ||
if "pawamoy-insiders/griffe-warnings-deprecated" in origin: | ||
ctx.run( | ||
"git remote add upstream [email protected]:mkdocstrings/griffe-warnings-deprecated", | ||
silent=True, | ||
nofail=True, | ||
allow_overrides=False, | ||
) | ||
ctx.run( | ||
tools.mkdocs.gh_deploy(remote_name="upstream", force=True), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ description = "Griffe extension for `@warnings.deprecated` (PEP 702)." | |
authors = [{name = "Timothée Mazzucotelli", email = "[email protected]"}] | ||
license = {text = "ISC"} | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
keywords = [] | ||
dynamic = ["version"] | ||
classifiers = [ | ||
|
@@ -17,12 +17,12 @@ classifiers = [ | |
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: 3.14", | ||
"Topic :: Documentation", | ||
"Topic :: Software Development", | ||
"Topic :: Utilities", | ||
|
@@ -55,7 +55,6 @@ source-includes = [ | |
"scripts", | ||
"share", | ||
"tests", | ||
"devdeps.txt", | ||
"duties.py", | ||
"mkdocs.yml", | ||
"*.md", | ||
|
@@ -66,3 +65,40 @@ source-includes = [ | |
data = [ | ||
{path = "share/**/*", relative-to = "."}, | ||
] | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
# dev | ||
"editables>=0.5", | ||
|
||
# maintenance | ||
"build>=1.2", | ||
"git-changelog>=2.5", | ||
"twine>=5.1", | ||
|
||
# ci | ||
"duty>=1.4", | ||
"ruff>=0.4", | ||
"pytest>=8.2", | ||
"pytest-cov>=5.0", | ||
"pytest-randomly>=3.15", | ||
"pytest-xdist>=3.6", | ||
"mypy>=1.10", | ||
"types-markdown>=3.6", | ||
"types-pyyaml>=6.0", | ||
|
||
# docs | ||
"black>=24.4", | ||
"markdown-callouts>=0.4", | ||
"markdown-exec>=1.8", | ||
"mkdocs>=1.6", | ||
"mkdocs-coverage>=1.0", | ||
"mkdocs-gen-files>=0.5", | ||
"mkdocs-git-revision-date-localized-plugin>=1.2", | ||
"mkdocs-literate-nav>=0.6", | ||
"mkdocs-material>=9.5", | ||
"mkdocs-minify-plugin>=0.8", | ||
"mkdocstrings[python]>=0.25", | ||
# YORE: EOL 3.10: Remove line. | ||
"tomli>=2.0; python_version < '3.11'", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.