Skip to content

Commit

Permalink
chore: update cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
wpk-nist-gov committed Feb 18, 2025
1 parent ae6936e commit 65aed11
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/usnistgov/cookiecutter-nist-python.git",
"commit": "ea1b44f9306f1965ccf3b8cdf83ef9ad8a9dbd83",
"commit": "cf990f070ddda1ace18ec97b6c1eac9a7a772d1b",
"checkout": "develop",
"context": {
"cookiecutter": {
Expand All @@ -19,7 +19,7 @@
"__answers": "",
"_copy_without_render": [],
"_template": "https://github.com/usnistgov/cookiecutter-nist-python.git",
"_commit": "ea1b44f9306f1965ccf3b8cdf83ef9ad8a9dbd83"
"_commit": "cf990f070ddda1ace18ec97b6c1eac9a7a772d1b"
}
},
"directory": null
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ repos:

# * Commit message
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.2.1
rev: v4.2.2
hooks:
- id: commitizen
stages: [commit-msg]

# * uv
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.6.0
rev: 0.6.1
hooks:
- id: uv-lock
args: [--locked]
Expand Down Expand Up @@ -140,7 +140,7 @@ repos:

# pyproject-validate (schema-store)
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2025.02.10
rev: 2025.02.17
hooks:
- id: validate-pyproject
alias: validate-pyproject-full
Expand Down
19 changes: 12 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class SessionParams(DataclassParser):

# common parameters
lock: bool = False
no_lock: bool = False
update: bool = add_option("--update", "-U", help="update dependencies/package")
version: str | None = add_option(
"--version", "-V", help="pretend version", default=None
Expand Down Expand Up @@ -176,9 +177,6 @@ class SessionParams(DataclassParser):
# coverage
coverage: list[Literal["erase", "combine", "report", "html", "open"]] | None = None

# testdist
testdist_run: RUN_ANNO = None

# docs
docs: (
list[
Expand Down Expand Up @@ -254,7 +252,12 @@ def parse_posargs(*posargs: str) -> SessionParams:
without escaping.
"""
opts = SessionParams.from_posargs(posargs=posargs, prefix_char="+")
opts.lock = opts.lock or UV_LOCK

if opts.no_lock:
opts.lock = False
else:
opts.lock = opts.lock or UV_LOCK

return opts


Expand Down Expand Up @@ -435,8 +438,10 @@ def dev(
"ipykernel",
"install",
"--user",
"--name=pyproject2conda-dev",
"--display-name='Python [venv: pyproject2conda-dev]'",
"--name",
"pyproject2conda-dev",
"--display-name",
"Python [venv: pyproject2conda-dev]",
)


Expand Down Expand Up @@ -666,7 +671,7 @@ def testdist(

_test(
session=session,
run=opts.testdist_run,
run=opts.test_run,
test_no_pytest=opts.test_no_pytest,
test_options=opts.test_options,
no_cov=opts.no_cov,
Expand Down

0 comments on commit 65aed11

Please sign in to comment.