Skip to content

Commit 7738ea3

Browse files
authored
Update hooks & dependencies (#175)
1 parent e0c1e4b commit 7738ea3

File tree

6 files changed

+131
-41
lines changed

6 files changed

+131
-41
lines changed

.github/workflows/pull-request.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ jobs:
1212
- name: Run 'pre-commit'
1313
uses: dycw/action-pre-commit@latest
1414
with:
15+
token-checkout: ${{github.token}}
16+
token-uv: ${{github.token}}
1517
repos: |-
1618
dycw/conformalize
1719
pre-commit/pre-commit-hooks
18-
token-checkout: ${{secrets.GITHUB_TOKEN}}
19-
token-uv: ${{secrets.GITHUB_TOKEN}}
20+
sleep: 1
2021
pyright:
2122
runs-on: ubuntu-latest
2223
steps:
2324
- name: Run 'pyright'
2425
uses: dycw/action-pyright@latest
2526
with:
27+
token-checkout: ${{github.token}}
28+
token-uv: ${{github.token}}
2629
python-version: "3.14"
27-
token-checkout: ${{secrets.GITHUB_TOKEN}}
28-
token-uv: ${{secrets.GITHUB_TOKEN}}
30+
resolution: highest
31+
prerelease: disallow
2932
pytest:
3033
env:
3134
CI: "1"
@@ -36,10 +39,11 @@ jobs:
3639
- name: Run 'pytest'
3740
uses: dycw/action-pytest@latest
3841
with:
42+
token-checkout: ${{github.token}}
43+
token-uv: ${{github.token}}
3944
python-version: ${{matrix.python-version}}
4045
resolution: ${{matrix.resolution}}
41-
token-checkout: ${{secrets.GITHUB_TOKEN}}
42-
token-uv: ${{secrets.GITHUB_TOKEN}}
46+
prerelease: disallow
4347
strategy:
4448
fail-fast: false
4549
matrix:
@@ -50,11 +54,12 @@ jobs:
5054
- "3.14"
5155
resolution:
5256
- highest
57+
- lowest-direct
5358
ruff:
5459
runs-on: ubuntu-latest
5560
steps:
5661
- name: Run 'ruff'
5762
uses: dycw/action-ruff@latest
5863
with:
59-
token-checkout: ${{secrets.GITHUB_TOKEN}}
60-
token-ruff: ${{secrets.GITHUB_TOKEN}}
64+
token-checkout: ${{github.token}}
65+
token-ruff: ${{github.token}}

.github/workflows/push.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ jobs:
1010
- name: Tag latest commit
1111
uses: dycw/action-tag@latest
1212
with:
13-
token-checkout: ${{secrets.GITHUB_TOKEN}}
14-
token-uv: ${{secrets.GITHUB_TOKEN}}
13+
token-checkout: ${{github.token}}
14+
token-uv: ${{github.token}}
15+
user-name: github-actions-bot
16+
user-email: noreply@github.com

.gitignore

Lines changed: 99 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#### STANDARD GITIGNORE #######################################################
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
3-
*.py[cod]
5+
*.py[codz]
46
*$py.class
57

68
# C extensions
@@ -27,8 +29,8 @@ share/python-wheels/
2729
MANIFEST
2830

2931
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3234
*.manifest
3335
*.spec
3436

@@ -46,7 +48,7 @@ htmlcov/
4648
nosetests.xml
4749
coverage.xml
4850
*.cover
49-
*.py,cover
51+
*.py.cover
5052
.hypothesis/
5153
.pytest_cache/
5254
cover/
@@ -92,22 +94,37 @@ ipython_config.py
9294
# However, in case of collaboration, if having platform-specific dependencies or dependencies
9395
# having no cross-platform support, pipenv may install dependencies that don't work, or not
9496
# install all needed dependencies.
95-
#Pipfile.lock
97+
# Pipfile.lock
98+
99+
# UV
100+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101+
# This is especially recommended for binary packages to ensure reproducibility, and is more
102+
# commonly ignored for libraries.
103+
# uv.lock
96104

97105
# poetry
98106
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99107
# This is especially recommended for binary packages to ensure reproducibility, and is more
100108
# commonly ignored for libraries.
101109
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102-
#poetry.lock
110+
# poetry.lock
111+
# poetry.toml
103112

104113
# pdm
105114
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106-
#pdm.lock
107-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108-
# in version control.
109-
# https://pdm.fming.dev/#use-with-ide
110-
.pdm.toml
115+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
116+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
117+
# pdm.lock
118+
# pdm.toml
119+
.pdm-python
120+
.pdm-build/
121+
122+
# pixi
123+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
124+
# pixi.lock
125+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
126+
# in the .venv directory. It is recommended not to include this directory in version control.
127+
.pixi
111128

112129
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113130
__pypackages__/
@@ -116,11 +133,23 @@ __pypackages__/
116133
celerybeat-schedule
117134
celerybeat.pid
118135

136+
# Redis
137+
*.rdb
138+
*.aof
139+
*.pid
140+
141+
# RabbitMQ
142+
mnesia/
143+
rabbitmq/
144+
rabbitmq-data/
145+
146+
# ActiveMQ
147+
activemq-data/
148+
119149
# SageMath parsed files
120150
*.sage.py
121151

122152
# Environments
123-
.env
124153
.venv
125154
env/
126155
venv/
@@ -153,13 +182,63 @@ dmypy.json
153182
cython_debug/
154183

155184
# PyCharm
156-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158-
# and can be added to the global gitignore or merged into this file. For a more nuclear
159-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
185+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187+
# and can be added to the global gitignore or merged into this file. For a more nuclear
188+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
189+
# .idea/
190+
191+
# Abstra
192+
# Abstra is an AI-powered process automation framework.
193+
# Ignore directories containing user credentials, local state, and settings.
194+
# Learn more at https://abstra.io/docs
195+
.abstra/
196+
197+
# Visual Studio Code
198+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
201+
# you could uncomment the following to ignore the entire vscode folder
202+
# .vscode/
203+
204+
# Ruff stuff:
205+
.ruff_cache/
161206

162-
# extra
207+
# PyPI configuration file
208+
.pypirc
209+
210+
# Marimo
211+
marimo/_static/
212+
marimo/_lsp/
213+
__marimo__/
214+
215+
# Streamlit
216+
.streamlit/secrets.toml
217+
218+
#### END OF STANDARD GITIGNORE ################################################
219+
220+
#### CUSTOM GITIGNORE #########################################################
221+
222+
**/*.csv
223+
**/*.db
224+
**/*.gz
225+
**/*.html
226+
**/*.ipc
227+
**/*.ipynb
228+
**/*.pdf
229+
**/*.pickle
230+
**/*.shelf
231+
**/*.sqlite
232+
**/*.tar.gz
233+
**/*.tar.lz
234+
**/*.tmp
163235
.direnv/
164-
.ruff_cache/
165-
Untitled.ipynb
236+
.logs/
237+
htmls/
238+
ipcs/
239+
pdfs/
240+
pickles/
241+
shelves/
242+
tmp/
243+
244+
#### END OF CUSTOM GITIGNORE ##################################################

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
repos:
22
- repo: https://github.com/dycw/conformalize
3-
rev: 0.12.0
3+
rev: 0.13.6
44
hooks:
55
- args:
66
- --description=Template for Python packages
77
- --envrc
88
- --envrc--uv
99
- --github--pull-request--pre-commit
1010
- --github--pull-request--pyright
11-
- --github--pull-request--pytest--os--macos
12-
- --github--pull-request--pytest--os--ubuntu
13-
- --github--pull-request--pytest--resolution--highest
11+
- --github--pull-request--pytest--macos
12+
- --github--pull-request--pytest--ubuntu
1413
- --github--pull-request--ruff
1514
- --github--push--tag
15+
- --gitignore
1616
- --package-name=dycw-template-python
1717
- --pre-commit--dycw
1818
- --pre-commit--prettier
@@ -44,7 +44,7 @@ repos:
4444
- --autofix
4545
- id: trailing-whitespace
4646
- repo: https://github.com/dycw/actions
47-
rev: 0.3.31
47+
rev: 0.3.40
4848
hooks:
4949
- id: format-requirements
5050
- id: replace-sequence-strs

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[project]
99
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
10-
dependencies = []
10+
dependencies = ["dycw-utilities >=0.176.1, <1"]
1111
description = "Template for Python packages"
1212
name = "dycw-template-python"
1313
readme = "README.md"

uv.lock

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

0 commit comments

Comments
 (0)