Skip to content

Commit 5b1a64c

Browse files
authored
[pre-commit.ci] pre-commit autoupdate
2 parents cda26be + 8b7d724 commit 5b1a64c

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

.clang-format

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# A clang-format style that approximates Python's PEP 7
22
# Useful for IDE integration
3+
Language: C
34
BasedOnStyle: Google
45
AlwaysBreakAfterReturnType: All
56
AllowShortIfStatementsOnASingleLine: false
@@ -11,7 +12,26 @@ ColumnLimit: 88
1112
DerivePointerAlignment: false
1213
IndentGotoLabels: false
1314
IndentWidth: 4
15+
PointerAlignment: Right
16+
ReflowComments: true
17+
SortIncludes: false
18+
SpaceBeforeParens: ControlStatements
19+
SpacesInParentheses: false
20+
TabWidth: 4
21+
UseTab: Never
22+
---
1423
Language: Cpp
24+
BasedOnStyle: Google
25+
AlwaysBreakAfterReturnType: All
26+
AllowShortIfStatementsOnASingleLine: false
27+
AlignAfterOpenBracket: BlockIndent
28+
BinPackArguments: false
29+
BinPackParameters: false
30+
BreakBeforeBraces: Attach
31+
ColumnLimit: 88
32+
DerivePointerAlignment: false
33+
IndentGotoLabels: false
34+
IndentWidth: 4
1535
PointerAlignment: Right
1636
ReflowComments: true
1737
SortIncludes: false

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.9
3+
rev: v0.11.4
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
@@ -24,7 +24,7 @@ repos:
2424
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
2525

2626
- repo: https://github.com/pre-commit/mirrors-clang-format
27-
rev: v19.1.7
27+
rev: v20.1.0
2828
hooks:
2929
- id: clang-format
3030
types: [c]
@@ -44,20 +44,21 @@ repos:
4444
- id: check-json
4545
- id: check-toml
4646
- id: check-yaml
47+
args: [--allow-multiple-documents]
4748
- id: end-of-file-fixer
4849
exclude: ^Tests/images/
4950
- id: trailing-whitespace
5051
exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/
5152

5253
- repo: https://github.com/python-jsonschema/check-jsonschema
53-
rev: 0.31.2
54+
rev: 0.32.1
5455
hooks:
5556
- id: check-github-workflows
5657
- id: check-readthedocs
5758
- id: check-renovate
5859

5960
- repo: https://github.com/woodruffw/zizmor-pre-commit
60-
rev: v1.4.1
61+
rev: v1.5.2
6162
hooks:
6263
- id: zizmor
6364

@@ -72,7 +73,7 @@ repos:
7273
- id: pyproject-fmt
7374

7475
- repo: https://github.com/abravalheri/validate-pyproject
75-
rev: v0.23
76+
rev: v0.24.1
7677
hooks:
7778
- id: validate-pyproject
7879
additional_dependencies: [trove-classifiers>=2024.10.12]

src/_imagingcms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,8 +1402,8 @@ static struct PyGetSetDef cms_profile_getsetters[] = {
14021402
{"colorant_table_out", (getter)cms_profile_getattr_colorant_table_out},
14031403
{"intent_supported", (getter)cms_profile_getattr_is_intent_supported},
14041404
{"clut", (getter)cms_profile_getattr_is_clut},
1405-
{"icc_measurement_condition", (getter)cms_profile_getattr_icc_measurement_condition
1406-
},
1405+
{"icc_measurement_condition",
1406+
(getter)cms_profile_getattr_icc_measurement_condition},
14071407
{"icc_viewing_condition", (getter)cms_profile_getattr_icc_viewing_condition},
14081408

14091409
{NULL}

src/libImaging/QuantHash.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ typedef uint32_t HashVal_t;
2020

2121
typedef uint32_t (*HashFunc)(const HashTable *, const HashKey_t);
2222
typedef int (*HashCmpFunc)(const HashTable *, const HashKey_t, const HashKey_t);
23-
typedef void (*IteratorFunc)(const HashTable *, const HashKey_t, const HashVal_t, void *);
24-
typedef void (*IteratorUpdateFunc)(const HashTable *, const HashKey_t, HashVal_t *, void *);
23+
typedef void (*IteratorFunc)(
24+
const HashTable *, const HashKey_t, const HashVal_t, void *
25+
);
26+
typedef void (*IteratorUpdateFunc)(
27+
const HashTable *, const HashKey_t, HashVal_t *, void *
28+
);
2529
typedef void (*ComputeFunc)(const HashTable *, const HashKey_t, HashVal_t *);
2630
typedef void (*CollisionFunc)(
2731
const HashTable *, HashKey_t *, HashVal_t *, HashKey_t, HashVal_t

0 commit comments

Comments
 (0)