diff --git a/.copier-answers.yml b/.copier-answers.yml index ecac1cb..0207f0b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5241589..6c34ab5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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$ @@ -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] @@ -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 diff --git a/justfile b/justfile index 1bbab58..acfbaa2 100755 --- a/justfile +++ b/justfile @@ -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"