Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency pre-commit to v3.6.2 - autoclosed #21

Closed
Closed
Changes from 1 commit
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
Next Next commit
chore: fix Python 3.8 compatibility issue
huxuan committed Mar 6, 2024

Unverified

This user has not yet uploaded their public signing key.
commit 6e90c05c371de6a2e326cfdb2343a4969b494006
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ ENV PIPX_DEFAULT_PYTHON=/usr/local/bin/python
RUN pipx install pdm==2.12.4

# Install pre-commit
RUN pipx install pre-commit==3.6.2
RUN pipx install pre-commit==3.5.0

# Create a non-root user with sudo permission
ARG USERNAME=ss-python
7 changes: 7 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -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 }}

########################################################################################
@@ -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.5.0
[%- else %]
RUN pipx install pre-commit==3.6.2
[%- endif %]

# Create a non-root user with sudo permission
ARG USERNAME={{ repo_name }}
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": [
@@ -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 %]
]
}