Skip to content

Commit 5a99912

Browse files
authored
Update template files (#65)
* Update gitignore for Python from upstream - https://github.com/github/gitignore/blob/main/Python.gitignore * Bump action astral-sh/setup-uv to latest v6 - https://github.com/astral-sh/setup-uv/releases/tag/v6.3.0 * Update ubuntu runner to latest
1 parent 684961f commit 5a99912

File tree

3 files changed

+78
-7
lines changed

3 files changed

+78
-7
lines changed

{{cookiecutter.project_name}}/.github/actions/setup-python-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
python-version: {% raw %}${{ inputs.python-version }}{% endraw %}
2020

2121
- name: Install uv
22-
uses: astral-sh/setup-uv@v2
22+
uses: astral-sh/setup-uv@v6
2323
with:
2424
version: {% raw %}${{ inputs.uv-version }}{% endraw %}
2525
enable-cache: 'true'

{{cookiecutter.project_name}}/.github/workflows/validate-codecov-config.yml

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

99
jobs:
1010
validate-codecov-config:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Validate codecov configuration

{{cookiecutter.project_name}}/.gitignore

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ docs/source
44

55
# Byte-compiled / optimized / DLL files
66
__pycache__/
7-
*.py[cod]
7+
*.py[codz]
88
*$py.class
99

1010
# C extensions
@@ -50,7 +50,7 @@ htmlcov/
5050
nosetests.xml
5151
coverage.xml
5252
*.cover
53-
*.py,cover
53+
*.py.cover
5454
.hypothesis/
5555
.pytest_cache/
5656
cover/
@@ -86,6 +86,48 @@ target/
8686
profile_default/
8787
ipython_config.py
8888

89+
# pyenv
90+
# For a library or package, you might want to ignore these files since the code is
91+
# intended to run in multiple environments; otherwise, check them in:
92+
# .python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# UV
102+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
103+
# This is especially recommended for binary packages to ensure reproducibility, and is more
104+
# commonly ignored for libraries.
105+
#uv.lock
106+
107+
# poetry
108+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
109+
# This is especially recommended for binary packages to ensure reproducibility, and is more
110+
# commonly ignored for libraries.
111+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
112+
#poetry.lock
113+
#poetry.toml
114+
115+
# pdm
116+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
117+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
118+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
119+
#pdm.lock
120+
#pdm.toml
121+
.pdm-python
122+
.pdm-build/
123+
124+
# pixi
125+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
126+
#pixi.lock
127+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
128+
# in the .venv directory. It is recommended not to include this directory in version control.
129+
.pixi
130+
89131
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
90132
__pypackages__/
91133

@@ -98,6 +140,7 @@ celerybeat.pid
98140

99141
# Environments
100142
.env
143+
.envrc
101144
.venv
102145
env/
103146
venv/
@@ -129,12 +172,40 @@ dmypy.json
129172
# Cython debug symbols
130173
cython_debug/
131174

132-
# Vscode config files
133-
.vscode/
134-
135175
# PyCharm
136176
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
137177
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
138178
# and can be added to the global gitignore or merged into this file. For a more nuclear
139179
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
140180
#.idea/
181+
182+
# Abstra
183+
# Abstra is an AI-powered process automation framework.
184+
# Ignore directories containing user credentials, local state, and settings.
185+
# Learn more at https://abstra.io/docs
186+
.abstra/
187+
188+
# Visual Studio Code
189+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
190+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
191+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
192+
# you could uncomment the following to ignore the entire vscode folder
193+
# .vscode/
194+
195+
# Ruff stuff:
196+
.ruff_cache/
197+
198+
# PyPI configuration file
199+
.pypirc
200+
201+
# Cursor
202+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
203+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
204+
# refer to https://docs.cursor.com/context/ignore-files
205+
.cursorignore
206+
.cursorindexingignore
207+
208+
# Marimo
209+
marimo/_static/
210+
marimo/_lsp/
211+
__marimo__/

0 commit comments

Comments
 (0)