Skip to content

Commit bbf03cc

Browse files
⬆️ [upgraded_dependency] Upgraded to copier-UvScaffolding v0.2.4 (#18)
2 parents c14cced + a99ddac commit bbf03cc

File tree

7 files changed

+346
-275
lines changed

7 files changed

+346
-275
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# available at https://github.com/gt-sse-center/copier-UvScaffolding.
77
#
88

9-
_commit: v0.2.0
9+
_commit: v0.2.4
1010
_src_path: .
1111
author_email: github@DavidBrownell.com
1212
author_name: David Brownell

.gitignore

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
.coverage
2-
.DS_Store
3-
.vscode
4-
__pycache__
5-
minisign_key.pri
6-
post_generation_instructions.html
7-
build/
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
.coverage
12+
.DS_Store
13+
.vscode
14+
coverage.xml
15+
minisign_key.pri
16+
post_generation_instructions.html

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
| Automated Testing | `uv run pytest` or<br/>`uv run pytest --no-cov` | Run automated tests using [pytest](https://docs.pytest.org/) and extract code coverage using [coverage](https://coverage.readthedocs.io/) based on settings in `pyproject.toml`. | :white_check_mark: | :white_check_mark: |
2020
| Semantic Version Generation | `uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/FileBackup/__init__.py ./src` | Generate a new [Semantic Version](https://semver.org/) based on git commits using [AutoGitSemVer](https://github.com/davidbrownell/AutoGitSemVer). Version information is stored in `./src/FileBackup/__init__.py`. | | :white_check_mark: |
2121
| Python Package Creation | `uv build` | Create a python package using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. Generated packages will be written to `./dist`. | | :white_check_mark: |
22-
| Sign Artifacts | `uv run --with py-minisign python -c "import minisign; minisign.SecretKey.from_file(<temp_filename>).sign_file(<filename>, trusted_comment='<package_name> v<package_version>', drop_signature=True)` | Signs artifacts using [py-minisign](https://github.com/x13a/py-minisign). Note that the private key is stored as a [GitHub secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions). | | :white_check_mark: |
22+
| Sign Artifacts | `uv run python -c "import minisign; minisign.SecretKey.from_file(<temp_filename>).sign_file(<filename>, trusted_comment='<package_name> v<package_version>', drop_signature=True)` | Signs artifacts using [py-minisign](https://github.com/x13a/py-minisign). Note that the private key is stored as a [GitHub secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions). | | :white_check_mark: |
2323
| Python Package Publishing | `uv publish` | Publish a python package to [PyPi](https://pypi.org/) using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. | | :white_check_mark: |
2424

2525
## Contributing Changes

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
## Overview
2525
TODO: Complete this section
2626

27-
### How to use FileBackup
27+
### How to use `FileBackup`
2828
TODO: Complete this section
2929

3030
<!-- Content below this delimiter will be copied to the generated README.md file. DO NOT REMOVE THIS COMMENT, as it will cause regeneration to fail. -->
@@ -37,11 +37,13 @@ TODO: Complete this section
3737
| Via [pip](https://pip.pypa.io/en/stable/) | `pip install FileBackup` |
3838

3939
### Verifying Signed Artifacts
40-
Artifacts are signed and validated using [py-minisign](https://github.com/x13a/py-minisign) and the public key in the file `./minisign_key.pub`.
40+
Artifacts are signed and verified using [py-minisign](https://github.com/x13a/py-minisign) and the public key in the file `./minisign_key.pub`.
4141

4242
To verify that an artifact is valid, visit [the latest release](https://github.com/davidbrownell/FileBackup/releases/latest) and download the `.minisign` signature file that corresponds to the artifact, then run the following command, replacing `<filename>` with the name of the artifact to be verified:
4343

44-
`uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>')"`
44+
```shell
45+
uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>'); print('The file has been verified.')"
46+
```
4547

4648
## Development
4749
Please visit [Contributing](https://github.com/davidbrownell/FileBackup/blob/main/CONTRIBUTING.md) and [Development](https://github.com/davidbrownell/FileBackup/blob/main/DEVELOPMENT.md) for information on contributing to this project.
@@ -59,4 +61,4 @@ Additional information can be found at these locations.
5961
| Security | [SECURITY.md](https://github.com/davidbrownell/FileBackup/blob/main/SECURITY.md) | Information about how to privately report security issues associated with this project. |
6062

6163
## License
62-
FileBackup is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.
64+
`FileBackup` is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.

pyproject.toml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,21 @@ build-backend = "hatchling.build"
5858

5959
[dependency-groups]
6060
dev = [
61-
"autogitsemver>=0.8.0",
61+
"autogitsemver>=0.8.4",
6262
"cx-freeze>=8.3.0",
63-
"dbrownell-commitemojis>=0.1.3",
63+
"dbrownell-commitemojis>=0.1.4",
6464
"pre-commit>=4.2.0",
65-
"pytest>=8.3.5",
66-
"pytest-cov>=6.1.1",
67-
"ruff>=0.11.8",
65+
"py-minisign>=0.12.0",
66+
"pytest>=8.4.1",
67+
"pytest-cov>=6.2.1",
68+
"ruff>=0.12.3",
6869
]
6970

7071
[tool.hatch.version]
7172
path = "src/FileBackup/__init__.py"
7273

7374
[tool.pytest.ini_options]
74-
addopts = "--verbose -vv --capture=no --cov=FileBackup --cov-fail-under=85.0"
75+
addopts = "--verbose -vv --capture=no --cov=FileBackup --cov-report term --cov-report xml:coverage.xml --cov-fail-under=85.0"
7576
python_files = [
7677
"**/*Test.py",
7778
]
@@ -87,12 +88,21 @@ ignore = [
8788
"ANN003", # Missing type annotation for `**kwargs`
8889
"BLE001", # Do not catch blind exception: `Exception`
8990
"COM812", # Trailing comma missing
91+
"D105", # Missing docstring in magic method
92+
"D107", # Missing docstring in `__init__` method
9093
"D202", # No blank lines allowed after function docstring
9194
"E501", # Line too long
95+
"FIX002", # Line contains TODO, consider resolving the issue
9296
"I001", # Import block is un-sorted or un-formatted
9397
"N802", # Function name `xxx` should be lowercase
9498
"N999", # Invalid module name
99+
"RSE102", # Unnecessary parentheses on raise exception
95100
"S101", # Use of assert detected
101+
"TC006", # Add quotes to type expression in `typing.cast()`
102+
"TD002", # Missing author in TODO
103+
"TD003", # Missing issue link for this TODO
104+
"TRY002", # Create your own exception
105+
"TRY300", # Consider moving this statement to an `else` block
96106
"UP032", # Use f-string instead of `format` call
97107
]
98108

src/FileBackup/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# ----------------------------------------------------------------------
2-
# |
3-
# | Copyright (c) 2024 David Brownell
4-
# | Distributed under the MIT License.
5-
# |
6-
# ----------------------------------------------------------------------
7-
# pylint: disable=missing-module-docstring,invalid-name
8-
9-
# Note that this value will be overwritten by calls to `python ../../Build.py update_version` based
10-
# on changes observed in the git repository. The default value below will be used until the value
11-
# here is explicitly updated by the Continuous Integration system as part of a commit.
12-
__version__ = "0.1.0"
1+
# noqa: D104
2+
3+
# Wheel names will be generated according to this value. Do not manually modify this value; instead
4+
# update it according to committed changes by running this command from the root of the repository:
5+
#
6+
# uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/FileBackup/__init__.py ./src
7+
#
8+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)