Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v0.12.0-47-gc97a0f4
_commit: v0.12.0-51-geb33677
_src_path: https://github.com/usnistgov/cookiecutter-nist-python.git
command_line_interface: typer
conda_channel: conda-forge
Expand Down
19 changes: 6 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,13 @@ repos:

# * sync dependencies
- repo: https://github.com/wpk-nist-gov/sync-pre-commit-hooks
rev: v0.3.0
rev: v0.5.1
hooks:
- id: forbidden-files
- id: sync-pre-commit-deps
- id: sync-uv-build-deps
- id: sync-uv-dependency-groups

# * Forbidden files
- repo: local
hooks:
- id: forbidden-files
name: forbidden files
entry: Found forbidden file.
language: fail
files: \.(rej|bak)$

# * Top level
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Expand All @@ -60,7 +53,7 @@ repos:
- id: taplo-lint
args: ["--no-schema"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.21.0
rev: v2.21.1
hooks:
- id: pyproject-fmt
files: ^pyproject\.toml$
Expand Down Expand Up @@ -118,7 +111,7 @@ repos:
# * Spelling
# ** typos
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.45.0
rev: v1.45.1
hooks:
- id: typos
exclude_types: [jupyter]
Expand Down Expand Up @@ -195,7 +188,7 @@ repos:
priority: 0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
# Zizmor version.
rev: v1.24.0
rev: v1.24.1
hooks:
# Run the linter.
- id: zizmor
Expand Down
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,15 @@ sync *options: (_requirements "--sync" options)
[group("requirements")]
lock *options: (_requirements "--lock" options)

# Rebu ild requirements, lock requirements, and run uv sync if .venv exists or uv lock if not. Pass --upgrade/-U to upgrade
# Rebuild requirements, lock requirements, and run uv sync if .venv exists or uv lock if not. Pass --upgrade/-U to upgrade
[group("requirements")]
requirements *options: (_requirements "--sync-or-lock" options)

# Upgrade pyproject.toml dependency min versions using uv-upx
[group("requirements")]
pyproject-upgrade-min-versions:
uvx --from "uv-upx>=0.4.3" uv-upx upgrade run --no-sync

# * Typecheck ---------------------------------------------------------------------

TYPECHECK_UVRUN_OPTS := "--only-group=type"
Expand Down
Loading