Skip to content

Commit 8eaaf43

Browse files
authored
Merge branch 'main' into dependabot/github_actions/github/codeql-action-4
2 parents 6bb8ef5 + 2015b51 commit 8eaaf43

7 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
name: coverage
194194

195195
- name: SonarQube Scan
196-
uses: SonarSource/sonarqube-scan-action@v5
196+
uses: SonarSource/sonarqube-scan-action@v7
197197
env:
198198
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
199199
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/draft_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python3 -m mdformat CHANGELOG.md
3131
3232
- name: Commit changes
33-
uses: stefanzweifel/git-auto-commit-action@v5
33+
uses: stefanzweifel/git-auto-commit-action@v7
3434
id: make-commit
3535
with:
3636
branch: release/${{ github.event.inputs.tag }}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ repos:
5151
- id: yamllint
5252

5353
- repo: https://github.com/asottile/blacken-docs
54-
rev: 1.19.1
54+
rev: 1.20.0
5555
hooks:
5656
- id: blacken-docs
5757
args: [-S, -l, '120']
5858
additional_dependencies: [black==22.12.0]
5959

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

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- Update GitHub Action `actions/download-artifact` to v4
2626
- Update GitHub Action `actions/upload-artifact` to v4
2727
- Update GitHub Action `codecov/codecov-action` from v4 to v5
28-
- Use GitHub Action `SonarSource/sonarqube-scan-action` v5
28+
- Use GitHub Action `SonarSource/sonarqube-scan-action` v7
29+
- Update GitHub Action `github/codeql-action` from v3 to v4
30+
- Update GitHub Action `stefanzweifel/git-auto-commit-action` from v5 to v7
2931
- Update `github.com/pre-commit/pre-commit-hooks` hook to v6.0.0
3032
- Update `https://github.com/PyCQA/doc8/` hook to v2.0.0
3133
- Update `github.com/codespell-project/codespell` hook to v2.4.1
3234
- Update `github.com/shellcheck-py/shellcheck-py` hook to v0.11.0.1
3335
- Update `github.com/adrienverge/yamllint.git` hook to v1.37.1
34-
- Update `github.com/asottile/blacken-docs` hook to 1.19.1
35-
- Update `github.com/astral-sh/ruff-pre-commit` hook to v0.12.9
36+
- Update `github.com/asottile/blacken-docs` hook to 1.20.0
37+
- Update `github.com/astral-sh/ruff-pre-commit` hook to v0.14.10
3638

3739
## [v1.9.6] - 2024-06-02
3840

cmake_pc_hooks/_argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ def _load_data_from_toml(
145145
except FileNotFoundError as err:
146146
if path_must_exist:
147147
raise TOMLFileNotFoundError(path) from err
148-
log.debug('TOML file %s does not exist (not an error)', str(path))
148+
log.debug('TOML file %s does not exist (not an error)', path)
149149
except KeyError as err:
150150
if section_must_exist:
151151
raise TOMLSectionKeyError(section, path) from err
152-
log.debug('TOML file %s does not have a %s section (not an error)', str(path), section)
152+
log.debug('TOML file %s does not have a %s section (not an error)', path, section)
153153
else:
154154
return config
155155
return {}

cmake_pc_hooks/_cmake.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def resolve_build_directory(self, build_dir_list=None, *, automatic_discovery=Tr
271271
if build_dir.exists() and Path(build_dir, 'CMakeCache.txt').exists():
272272
log.debug(
273273
'Located valid build directory with CMakeCache.txt at: %s',
274-
str(build_dir),
274+
build_dir,
275275
)
276276
self.build_dir = build_dir.resolve()
277277
return
@@ -280,7 +280,7 @@ def resolve_build_directory(self, build_dir_list=None, *, automatic_discovery=Tr
280280
if automatic_discovery:
281281
for path in sorted(self.source_dir.glob('*')):
282282
if path.is_dir() and (path / 'CMakeCache.txt').exists():
283-
log.info('Automatic build dir discovery resulted in: %s', str(path))
283+
log.info('Automatic build dir discovery resulted in: %s', path)
284284
self.build_dir = path
285285
return
286286

@@ -295,7 +295,7 @@ def resolve_build_directory(self, build_dir_list=None, *, automatic_discovery=Tr
295295
self.build_dir = Path(build_dir_list[0]).resolve()
296296
log.info(
297297
'Unable to locate a valid build directory. Will be creating one at %s',
298-
str(self.build_dir),
298+
self.build_dir,
299299
)
300300

301301
def setup_cmake_args(self, cmake_args): # noqa: C901
@@ -532,8 +532,8 @@ def _is_relevant_configure_file_call(json_data):
532532
configured_file = self.build_dir / configured_file
533533
log.debug(
534534
'detected call to configure_file(%s %s [...])',
535-
str(input_file),
536-
str(configured_file),
535+
input_file,
536+
configured_file,
537537
)
538538
self.cmake_configured_files.append(str(configured_file))
539539

cmake_pc_hooks/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _resolve_compilation_database(cmake_build_dir: Path, build_dir_list: list[Pa
173173
for build_dir in build_dir_list:
174174
path = Path(build_dir, 'compile_commands.json')
175175
if build_dir.exists() and path.exists():
176-
log.debug('Located valid compilation database at: %s', str(path))
176+
log.debug('Located valid compilation database at: %s', path)
177177
return path
178178
log.debug('No valid compilation database located')
179179
return None

0 commit comments

Comments
 (0)