Skip to content
Closed
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
7 changes: 7 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
]
},
"semanticCommitScope": "copier-template"
},
{
"enabled": false,
"matchCurrentVersion": "3.5.0",
"matchPackageNames": [
"pre-commit"
]
}
]
}
5 changes: 5 additions & 0 deletions template/.devcontainer/Dockerfile.jinja
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[% from pathjoin("includes", "version_compare.jinja") import version_higher_than -%]
ARG PYTHON_VERSION={{ default_py }}

########################################################################################
Expand All @@ -22,7 +23,11 @@ ENV PIPX_DEFAULT_PYTHON=/usr/local/bin/python
RUN pipx install pdm==2.12.4

# Install pre-commit
[%- if not version_higher_than(min_py, "3.9") %]
RUN pipx install pre-commit==3.6.2
[%- else %]
RUN pipx install pre-commit==3.6.2
[%- endif %]

# Create a non-root user with sudo permission
ARG USERNAME={{ repo_name }}
Expand Down
10 changes: 10 additions & 0 deletions template/.renovaterc.json.jinja
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[% from pathjoin("includes", "version_compare.jinja") import version_higher_than -%]
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
Expand Down Expand Up @@ -54,5 +55,14 @@
},
"semanticCommitScope": "copier-template"
}
[%- if not version_higher_than(min_py, "3.9") %],
{
"enabled": false,
"matchCurrentVersion": "3.5.0",
"matchPackageNames": [
"pre-commit"
]
}
[%- endif %]
]
}