Skip to content

Commit 658b047

Browse files
[pre-commit.ci] pre-commit autoupdate (#113)
* [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/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.5](astral-sh/ruff-pre-commit@v0.3.5...v0.4.5) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update CHANGELOG * Run pre-commit autoupdate --------- 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 aa4223e commit 658b047

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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
@@ -32,7 +32,7 @@ repos:
3232
additional_dependencies: [tomli]
3333

3434
- repo: https://github.com/codespell-project/codespell
35-
rev: v2.2.6
35+
rev: v2.3.0
3636
hooks:
3737
- id: codespell
3838
files: .*\.(py|txt|cmake|md|rst|sh|ps1|hpp|tpp|cpp|cc)$
@@ -58,7 +58,7 @@ repos:
5858
additional_dependencies: [black==22.12.0]
5959

6060
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.3.5
61+
rev: v0.4.7
6262
hooks:
6363
- id: ruff-format
6464
name: ruff (format)

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Apply new linter/formatters
13+
1014
### Repository
1115

1216
- Update GitHub Action `action/setup-python` to v5
1317
- Update GitHub Action `codecov/codecov-action` from v3 to v4
1418
- Update GitHub Action `ilammy/msvc-dev-cmd` from v1.12.1 to v1.13.0
1519
- Update GitHub Action `thomaseizinger/create-pull-request` to v1.4.0
1620
- Update `adrienverge/yamllint` hook to v1.35.1
17-
- Update `astral-sh/ruff-pre-commit` hook to v0.3.5
21+
- Update `astral-sh/ruff-pre-commit` hook to v0.4.5
22+
- Update `codespell-project/codespell` hook to v2.3.0
1823
- Update `Lucas-C/pre-commit-hook` hook to v1.5.5
24+
- Update `pre-commit/pre-commit-hooks` hook to v4.6.0
1925
- Update `shellcheck-py/shellcheck-py` hook to v0.10.0
2026

2127
## [v1.9.5] - 2023-12-15
@@ -228,6 +234,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
228234
### Repository
229235

230236
- Update GitHub's CodeQL action to v2
237+
- Update `astral-sh/ruff-pre-commit` hook to v0.4.7
231238
- Update `pre-commit/pre-commit-hooks` hook to v4.3.0
232239
- Update `Lucas-C/pre-commit-hooks` hook to v1.2.0
233240
- Update `pre-commit/mirrors-pylint` hook to v3.0.0a5

cmake_pc_hooks/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def parse_args(self, args):
102102
self.all_at_once = known_args.all_at_once
103103
self.read_json_db = known_args.read_json_db
104104
self.clean_build = known_args.clean
105-
self.build_dir_list.extend(known_args.build_dir if known_args.build_dir else [])
105+
self.build_dir_list.extend(known_args.build_dir or [])
106106

107107
if not known_args.build_dir and known_args.preset:
108108
raise CMakePresetError

0 commit comments

Comments
 (0)