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
12 changes: 1 addition & 11 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
schedule:
- cron: 0 0 * * *
- cron: 31 16 * * *
jobs:
pre-commit:
runs-on: ubuntu-latest
Expand All @@ -13,21 +13,15 @@ jobs:
name: Run 'pre-commit' hooks
uses: dycw/action-run-hooks@latest
with:
token: ${{github.token}}
repos: |-
dycw/actions
pre-commit/pre-commit-hooks
sleep: 1
pyright:
runs-on: ubuntu-latest
steps:
- name: Run 'pyright'
uses: dycw/action-pyright@latest
with:
token: ${{github.token}}
python-version: "3.14"
resolution: highest
prerelease: disallow
pytest:
env:
CI: "1"
Expand All @@ -38,10 +32,8 @@ jobs:
- name: Run 'pytest'
uses: dycw/action-pytest@latest
with:
token: ${{github.token}}
python-version: ${{matrix.python-version}}
resolution: ${{matrix.resolution}}
prerelease: disallow
strategy:
fail-fast: false
matrix:
Expand All @@ -58,5 +50,3 @@ jobs:
steps:
- name: Run 'ruff'
uses: dycw/action-ruff@latest
with:
token: ${{github.token}}
4 changes: 0 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ jobs:
steps:
- name: Tag the latest commit
uses: dycw/action-tag-commit@latest
with:
token: ${{github.token}}
user-name: github-actions-bot
user-email: noreply@github.com
20 changes: 12 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
repos:
- repo: https://github.com/dycw/actions
rev: 0.6.3
rev: 0.10.3
hooks:
- id: conformalize-repo
args:
- --ci--pull-request--pre-commit
- --ci--pull-request--pyright
- --ci--pull-request--pytest--macos
- --ci--pull-request--pytest--ubuntu
- --ci--pull-request--pytest--all-versions
- --ci--pull-request--ruff
- --ci--push--tag
- --description=Template for Python packages
- --envrc
- --envrc--uv
- --github--pull-request--pre-commit
- --github--pull-request--pyright
- --github--pull-request--pytest--macos
- --github--pull-request--pytest--ubuntu
- --github--pull-request--ruff
- --github--push--tag
- --gitignore
- --package-name=dycw-template-python
- --pre-commit--prettier
Expand All @@ -28,6 +29,9 @@ repos:
- --ruff
- id: format-requirements
- id: replace-sequence-strs
- id: touch-empty-py
- id: touch-py-typed
- id: update-requirements
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
Expand Down Expand Up @@ -55,7 +59,7 @@ repos:
- markdown
- yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.14.11
hooks:
- id: ruff-check
args:
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
requires = ["uv_build"]

[dependency-groups]
dev = ["dycw-utilities[test]", "pyright", "rich"]
dev = [
"dycw-utilities[test]>=0.179.1, <1",
"pyright>=1.1.408, <2",
"rich>=14.2.0, <15",
]

[project]
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
dependencies = ["dycw-utilities >=0.176.2, <1"]
dependencies = ["dycw-utilities>=0.179.1, <1"]
description = "Template for Python packages"
name = "dycw-template-python"
readme = "README.md"
Expand Down
Loading
Loading