Skip to content

Commit d00bd52

Browse files
ci: Add pre-commit hooks and install pre-commit.ci (#56)
1 parent bfdb270 commit d00bd52

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
languages: ${{ matrix.language }}
5454
# If you wish to specify custom queries, you can do so here or in a config file.
55-
# By default, queries listed here will override any specified in a config file.
55+
# By default, queries listed here will override any specified in a config file.
5656
# Prefix the list here with "+" to use these queries and those in the config file.
5757
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5858

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v6.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.14.6
13+
hooks:
14+
- id: ruff-check
15+
# - id: ruff-format
16+
- repo: https://github.com/astral-sh/uv-pre-commit
17+
rev: 0.9.13
18+
hooks:
19+
- id: uv-lock
20+
- repo: https://github.com/python-jsonschema/check-jsonschema
21+
rev: 0.35.0
22+
hooks:
23+
- id: check-github-workflows
24+
- id: check-renovate

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ gets a non-falsey result could be defined like like this:
168168
def poll_for_message(queue):
169169
return queue.get()
170170
171-
The jitter is disabled in order to keep the polling frequency fixed.
171+
The jitter is disabled in order to keep the polling frequency fixed.
172172

173173
@backoff.runtime
174174
----------------

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"config:recommended"
55
],
66
"timezone": "America/Mexico_City",
7-
"lockfileMaintenance": {
7+
"lockFileMaintenance": {
88
"enabled": true,
99
"schedule": ["* 12-18 * * 5"]
1010
},

0 commit comments

Comments
 (0)