Skip to content

Commit 68bb2ef

Browse files
authored
Move to dycw/conformalize, use --envrc and --pre-commit--uv (#173)
1 parent 5bc57bd commit 68bb2ef

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.envrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
echo_date() { echo "[$(date +'%Y-%m-%d %H:%M:%S')] $*" >&2; }
66

77
# uv
8+
export UV_MANAGED_PYTHON='true'
89
export UV_PRERELEASE='disallow'
10+
export UV_PYTHON='3.14'
911
if ! command -v uv >/dev/null 2>&1; then
10-
echo_date "ERROR: 'uv' not found" && exit 1
12+
echo_date "ERROR: 'uv' not found" && exit 1
1113
fi
1214
activate='.venv/bin/activate'
1315
if [ -f $activate ]; then
14-
. $activate
16+
. $activate
1517
else
16-
uv venv
18+
uv venv
1719
fi
1820
uv sync --all-extras --all-groups --active --locked

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
repos:
22
- repo: https://github.com/dycw/conformalize
3-
rev: 0.10.0
3+
rev: 0.10.9
44
hooks:
55
- args:
66
- --description=Template for Python packages
7+
- --envrc
8+
- --envrc--uv
79
- --github--pull-request--pre-commit
810
- --github--pull-request--pyright
911
- --github--pull-request--pytest--os--macos
@@ -13,6 +15,7 @@ repos:
1315
- --github--pull-request--ruff
1416
- --github--push--tag
1517
- --package-name=dycw-template-python
18+
- --pre-commit--dycw
1619
- --pre-commit--prettier
1720
- --pre-commit--ruff
1821
- --pre-commit--taplo
@@ -41,6 +44,11 @@ repos:
4144
args:
4245
- --autofix
4346
- id: trailing-whitespace
47+
- repo: https://github.com/dycw/actions
48+
rev: 0.3.30
49+
hooks:
50+
- id: format-requirements
51+
- id: replace-sequence-strs
4452
- repo: local
4553
hooks:
4654
- id: prettier

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)