Skip to content

Commit 0d5d34b

Browse files
authored
Replace pre-commit with prek in CI (#438)
1 parent 6bf6a94 commit 0d5d34b

File tree

9 files changed

+37
-13
lines changed

9 files changed

+37
-13
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ updates:
1010
pip:
1111
patterns:
1212
- "*"
13+
cooldown:
14+
default-days: 7
1315

1416
- package-ecosystem: "github-actions"
1517
directory: "/"
@@ -21,3 +23,5 @@ updates:
2123
actions:
2224
patterns:
2325
- "*"
26+
cooldown:
27+
default-days: 7

.github/workflows/lint.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: {}
6+
57
env:
68
FORCE_COLOR: 1
79

8-
permissions:
9-
contents: read
10-
1110
jobs:
1211
lint:
1312
runs-on: ubuntu-latest
@@ -16,7 +15,4 @@ jobs:
1615
- uses: actions/checkout@v6
1716
with:
1817
persist-credentials: false
19-
- uses: actions/setup-python@v6
20-
with:
21-
python-version: "3.x"
22-
- uses: tox-dev/action-pre-commit-uv@v1
18+
- uses: j178/prek-action@v1

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://docs.zizmor.sh/configuration/
2+
rules:
3+
unpinned-uses:
4+
config:
5+
policies:
6+
"*": ref-pin

.pre-commit-config.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,33 @@ repos:
55
- id: python-check-blanket-noqa
66

77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.5.0
8+
rev: v6.0.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: check-case-conflict
1212
- id: check-merge-conflict
1313
- id: check-json
1414
- id: check-yaml
1515
- id: debug-statements
16+
- id: end-of-file-fixer
1617
- id: forbid-submodules
18+
- id: trailing-whitespace
19+
20+
- repo: https://github.com/python-jsonschema/check-jsonschema
21+
rev: 0.36.0
22+
hooks:
23+
- id: check-dependabot
24+
- id: check-github-workflows
25+
26+
- repo: https://github.com/rhysd/actionlint
27+
rev: v1.7.10
28+
hooks:
29+
- id: actionlint
30+
31+
- repo: https://github.com/woodruffw/zizmor-pre-commit
32+
rev: v1.19.0
33+
hooks:
34+
- id: zizmor
1735

1836
- repo: meta
1937
hooks:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-
202+

static/fonts/fontawesome-webfont.svg

Lines changed: 1 addition & 1 deletion
Loading

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ <h5 class="my-0 mr-md-auto font-weight-normal"><a href="/howto">How do I use Blu
5353
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
5454
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
5555
</body>
56-
</html>
56+
</html>

templates/error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
<h1>{{ status }}</h1>
66
<h1> {{ error_message }}</h1>
7-
{% endblock %}
7+
{% endblock %}

templates/howto.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
</ol>
1919
</div>
2020

21-
{% endblock %}
21+
{% endblock %}

0 commit comments

Comments
 (0)