mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 08:12:33 +03:00
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
commit
5b1a64c53c
|
@ -1,5 +1,26 @@
|
||||||
# A clang-format style that approximates Python's PEP 7
|
# A clang-format style that approximates Python's PEP 7
|
||||||
# Useful for IDE integration
|
# Useful for IDE integration
|
||||||
|
Language: C
|
||||||
|
BasedOnStyle: Google
|
||||||
|
AlwaysBreakAfterReturnType: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AlignAfterOpenBracket: BlockIndent
|
||||||
|
BinPackArguments: false
|
||||||
|
BinPackParameters: false
|
||||||
|
BreakBeforeBraces: Attach
|
||||||
|
ColumnLimit: 88
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
IndentGotoLabels: false
|
||||||
|
IndentWidth: 4
|
||||||
|
PointerAlignment: Right
|
||||||
|
ReflowComments: true
|
||||||
|
SortIncludes: false
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpacesInParentheses: false
|
||||||
|
TabWidth: 4
|
||||||
|
UseTab: Never
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
BasedOnStyle: Google
|
BasedOnStyle: Google
|
||||||
AlwaysBreakAfterReturnType: All
|
AlwaysBreakAfterReturnType: All
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
@ -11,7 +32,6 @@ ColumnLimit: 88
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
IndentGotoLabels: false
|
IndentGotoLabels: false
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
Language: Cpp
|
|
||||||
PointerAlignment: Right
|
PointerAlignment: Right
|
||||||
ReflowComments: true
|
ReflowComments: true
|
||||||
SortIncludes: false
|
SortIncludes: false
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.9.9
|
rev: v0.11.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--exit-non-zero-on-fix]
|
args: [--exit-non-zero-on-fix]
|
||||||
|
@ -24,7 +24,7 @@ repos:
|
||||||
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
|
exclude: (Makefile$|\.bat$|\.cmake$|\.eps$|\.fits$|\.gd$|\.opt$)
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v19.1.7
|
rev: v20.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
types: [c]
|
types: [c]
|
||||||
|
@ -44,20 +44,21 @@ repos:
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
args: [--allow-multiple-documents]
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: ^Tests/images/
|
exclude: ^Tests/images/
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/
|
exclude: ^.github/.*TEMPLATE|^Tests/(fonts|images)/
|
||||||
|
|
||||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||||
rev: 0.31.2
|
rev: 0.32.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-github-workflows
|
- id: check-github-workflows
|
||||||
- id: check-readthedocs
|
- id: check-readthedocs
|
||||||
- id: check-renovate
|
- id: check-renovate
|
||||||
|
|
||||||
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
||||||
rev: v1.4.1
|
rev: v1.5.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: zizmor
|
- id: zizmor
|
||||||
|
|
||||||
|
@ -72,7 +73,7 @@ repos:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
|
|
||||||
- repo: https://github.com/abravalheri/validate-pyproject
|
- repo: https://github.com/abravalheri/validate-pyproject
|
||||||
rev: v0.23
|
rev: v0.24.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: validate-pyproject
|
- id: validate-pyproject
|
||||||
additional_dependencies: [trove-classifiers>=2024.10.12]
|
additional_dependencies: [trove-classifiers>=2024.10.12]
|
||||||
|
|
|
@ -1402,8 +1402,8 @@ static struct PyGetSetDef cms_profile_getsetters[] = {
|
||||||
{"colorant_table_out", (getter)cms_profile_getattr_colorant_table_out},
|
{"colorant_table_out", (getter)cms_profile_getattr_colorant_table_out},
|
||||||
{"intent_supported", (getter)cms_profile_getattr_is_intent_supported},
|
{"intent_supported", (getter)cms_profile_getattr_is_intent_supported},
|
||||||
{"clut", (getter)cms_profile_getattr_is_clut},
|
{"clut", (getter)cms_profile_getattr_is_clut},
|
||||||
{"icc_measurement_condition", (getter)cms_profile_getattr_icc_measurement_condition
|
{"icc_measurement_condition",
|
||||||
},
|
(getter)cms_profile_getattr_icc_measurement_condition},
|
||||||
{"icc_viewing_condition", (getter)cms_profile_getattr_icc_viewing_condition},
|
{"icc_viewing_condition", (getter)cms_profile_getattr_icc_viewing_condition},
|
||||||
|
|
||||||
{NULL}
|
{NULL}
|
||||||
|
|
|
@ -20,8 +20,12 @@ typedef uint32_t HashVal_t;
|
||||||
|
|
||||||
typedef uint32_t (*HashFunc)(const HashTable *, const HashKey_t);
|
typedef uint32_t (*HashFunc)(const HashTable *, const HashKey_t);
|
||||||
typedef int (*HashCmpFunc)(const HashTable *, const HashKey_t, const HashKey_t);
|
typedef int (*HashCmpFunc)(const HashTable *, const HashKey_t, const HashKey_t);
|
||||||
typedef void (*IteratorFunc)(const HashTable *, const HashKey_t, const HashVal_t, void *);
|
typedef void (*IteratorFunc)(
|
||||||
typedef void (*IteratorUpdateFunc)(const HashTable *, const HashKey_t, HashVal_t *, void *);
|
const HashTable *, const HashKey_t, const HashVal_t, void *
|
||||||
|
);
|
||||||
|
typedef void (*IteratorUpdateFunc)(
|
||||||
|
const HashTable *, const HashKey_t, HashVal_t *, void *
|
||||||
|
);
|
||||||
typedef void (*ComputeFunc)(const HashTable *, const HashKey_t, HashVal_t *);
|
typedef void (*ComputeFunc)(const HashTable *, const HashKey_t, HashVal_t *);
|
||||||
typedef void (*CollisionFunc)(
|
typedef void (*CollisionFunc)(
|
||||||
const HashTable *, HashKey_t *, HashVal_t *, HashKey_t, HashVal_t
|
const HashTable *, HashKey_t *, HashVal_t *, HashKey_t, HashVal_t
|
||||||
|
|
Loading…
Reference in New Issue
Block a user