File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ ENV PIPX_DEFAULT_PYTHON=/usr/local/bin/python
22
22
RUN pipx install pdm==2.12.4
23
23
24
24
# Install pre-commit
25
- RUN pipx install pre-commit==3.6.2
25
+ RUN pipx install pre-commit==3.5.0
26
26
27
27
# Create a non-root user with sudo permission
28
28
ARG USERNAME=ss-python
Original file line number Diff line number Diff line change 49
49
]
50
50
},
51
51
"semanticCommitScope" : " copier-template"
52
+ },
53
+ {
54
+ "enabled" : false ,
55
+ "matchCurrentVersion" : " 3.5.0" ,
56
+ "matchDepNames" : [
57
+ " pre-commit"
58
+ ]
52
59
}
53
60
]
54
61
}
Original file line number Diff line number Diff line change
1
+ [% from pathjoin("includes", "version_compare.jinja") import version_higher_than -%]
1
2
ARG PYTHON_VERSION={{ default_py }}
2
3
3
4
########################################################################################
@@ -22,7 +23,11 @@ ENV PIPX_DEFAULT_PYTHON=/usr/local/bin/python
22
23
RUN pipx install pdm==2.12.4
23
24
24
25
# Install pre-commit
26
+ [%- if not version_higher_than(min_py, "3.9") %]
27
+ RUN pipx install pre-commit==3.5.0
28
+ [%- else %]
25
29
RUN pipx install pre-commit==3.6.2
30
+ [%- endif %]
26
31
27
32
# Create a non-root user with sudo permission
28
33
ARG USERNAME={{ repo_name }}
Original file line number Diff line number Diff line change
1
+ [% from pathjoin("includes", "version_compare.jinja") import version_higher_than -%]
1
2
{
2
3
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
4
"customManagers": [
54
55
},
55
56
"semanticCommitScope": "copier-template"
56
57
}
58
+ [%- if not version_higher_than(min_py, "3.9") %],
59
+ {
60
+ "enabled": false,
61
+ "matchCurrentVersion": "3.5.0",
62
+ "matchDepNames": [
63
+ "pre-commit"
64
+ ]
65
+ }
66
+ [%- endif %]
57
67
]
58
68
}
You can’t perform that action at this time.
0 commit comments