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
21 changes: 13 additions & 8 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@ jobs:
- name: Run 'pre-commit'
uses: dycw/action-pre-commit@latest
with:
token-checkout: ${{github.token}}
token-uv: ${{github.token}}
repos: |-
dycw/conformalize
pre-commit/pre-commit-hooks
token-checkout: ${{secrets.GITHUB_TOKEN}}
token-uv: ${{secrets.GITHUB_TOKEN}}
sleep: 1
pyright:
runs-on: ubuntu-latest
steps:
- name: Run 'pyright'
uses: dycw/action-pyright@latest
with:
token-checkout: ${{github.token}}
token-uv: ${{github.token}}
python-version: "3.14"
token-checkout: ${{secrets.GITHUB_TOKEN}}
token-uv: ${{secrets.GITHUB_TOKEN}}
resolution: highest
prerelease: disallow
pytest:
env:
CI: "1"
Expand All @@ -36,10 +39,11 @@ jobs:
- name: Run 'pytest'
uses: dycw/action-pytest@latest
with:
token-checkout: ${{github.token}}
token-uv: ${{github.token}}
python-version: ${{matrix.python-version}}
resolution: ${{matrix.resolution}}
token-checkout: ${{secrets.GITHUB_TOKEN}}
token-uv: ${{secrets.GITHUB_TOKEN}}
prerelease: disallow
strategy:
fail-fast: false
matrix:
Expand All @@ -50,11 +54,12 @@ jobs:
- "3.14"
resolution:
- highest
- lowest-direct
ruff:
runs-on: ubuntu-latest
steps:
- name: Run 'ruff'
uses: dycw/action-ruff@latest
with:
token-checkout: ${{secrets.GITHUB_TOKEN}}
token-ruff: ${{secrets.GITHUB_TOKEN}}
token-checkout: ${{github.token}}
token-ruff: ${{github.token}}
6 changes: 4 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ jobs:
- name: Tag latest commit
uses: dycw/action-tag@latest
with:
token-checkout: ${{secrets.GITHUB_TOKEN}}
token-uv: ${{secrets.GITHUB_TOKEN}}
token-checkout: ${{github.token}}
token-uv: ${{github.token}}
user-name: github-actions-bot
user-email: noreply@github.com
119 changes: 99 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#### STANDARD GITIGNORE #######################################################

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*.py[codz]
*$py.class

# C extensions
Expand All @@ -27,8 +29,8 @@ share/python-wheels/
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

Expand All @@ -46,7 +48,7 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.py,cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/
Expand Down Expand Up @@ -92,22 +94,37 @@ ipython_config.py
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# uv.lock

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

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
# pdm.lock
# pdm.toml
.pdm-python
.pdm-build/

# pixi
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
# pixi.lock
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
# in the .venv directory. It is recommended not to include this directory in version control.
.pixi

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

# Redis
*.rdb
*.aof
*.pid

# RabbitMQ
mnesia/
rabbitmq/
rabbitmq-data/

# ActiveMQ
activemq-data/

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
Expand Down Expand Up @@ -153,13 +182,63 @@ dmypy.json
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
# .idea/

# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

# Ruff stuff:
.ruff_cache/

# extra
# PyPI configuration file
.pypirc

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/

# Streamlit
.streamlit/secrets.toml

#### END OF STANDARD GITIGNORE ################################################

#### CUSTOM GITIGNORE #########################################################

**/*.csv
**/*.db
**/*.gz
**/*.html
**/*.ipc
**/*.ipynb
**/*.pdf
**/*.pickle
**/*.shelf
**/*.sqlite
**/*.tar.gz
**/*.tar.lz
**/*.tmp
.direnv/
.ruff_cache/
Untitled.ipynb
.logs/
htmls/
ipcs/
pdfs/
pickles/
shelves/
tmp/

#### END OF CUSTOM GITIGNORE ##################################################
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/dycw/conformalize
rev: 0.12.0
rev: 0.13.6
hooks:
- args:
- --description=Template for Python packages
- --envrc
- --envrc--uv
- --github--pull-request--pre-commit
- --github--pull-request--pyright
- --github--pull-request--pytest--os--macos
- --github--pull-request--pytest--os--ubuntu
- --github--pull-request--pytest--resolution--highest
- --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--dycw
- --pre-commit--prettier
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
- --autofix
- id: trailing-whitespace
- repo: https://github.com/dycw/actions
rev: 0.3.31
rev: 0.3.40
hooks:
- id: format-requirements
- id: replace-sequence-strs
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[project]
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
dependencies = []
dependencies = ["dycw-utilities >=0.176.1, <1"]
description = "Template for Python packages"
name = "dycw-template-python"
readme = "README.md"
Expand Down
14 changes: 9 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading