Skip to content

Commit a30a258

Browse files
[pre-commit.ci] pre-commit autoupdate (#77)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.1](astral-sh/ruff-pre-commit@v0.3.5...v0.4.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update CHANGELOG --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com>
1 parent befe666 commit a30a258

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-useless-excludes
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.5.0
9+
rev: v4.6.0
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-case-conflict
@@ -56,7 +56,7 @@ repos:
5656
additional_dependencies: [black==23.3.0]
5757

5858
- repo: https://github.com/astral-sh/ruff-pre-commit
59-
rev: v0.3.5
59+
rev: v0.4.1
6060
hooks:
6161
- id: ruff-format
6262
name: ruff (format)

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Update `action/checkout` GitHub Action to v4
1414
- Update `github/codeql-action/analyze` GitHub Action to v3
1515
- Update `adrienverge/yamllint.git` hook to v1.35.1
16-
- Update `astral-sh/ruff-pre-commit` hook to v0.3.5
16+
- Update `astral-sh/ruff-pre-commit` hook to v0.4.1
1717
- Update `Lucas-C/pre-commit-hooks` hook to v1.5.5
18+
- Update `pre-commit/pre-commit-hooks` hook to v4.6.0
1819

1920
## [v1.5.1] - 2023-12-15
2021

tests/os_chmod_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_chmod_get_mode_binop(self, s, expected): # noqa: PLR6301
116116
'S_IREAD | S_IWRITE',
117117
'S_IRUSR | S_IWUSR | S_IXUSR',
118118
],
119-
ids=lambda s: s if s else '<empty>',
119+
ids=lambda s: s or '<empty>',
120120
)
121121
def test_chmod(self, mocker, platform, enabled_platform, fname, arg_type, forbidden, s): # noqa: PLR0917
122122
mocker.patch('platform.system', return_value=platform)

0 commit comments

Comments
 (0)