Skip to content

Commit 48d4052

Browse files
committed
Upgrade ruff to latest version
1 parent 72c6542 commit 48d4052

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ repos:
1313
args: [ "--fix=lf" ]
1414
- id: check-case-conflict
1515
- repo: https://github.com/charliermarsh/ruff-pre-commit
16-
rev: 'v0.11.4' # Ruff version.
16+
rev: 'v0.12.1' # Ruff version.
1717
hooks:
1818
- id: ruff
1919
stages: [ pre-push, pre-commit, manual ]
2020
# Run the formatter.
2121
- id: ruff-format
2222
stages: [ pre-push, pre-commit, manual ]
2323
- repo: https://github.com/pycqa/flake8
24-
rev: '7.2.0' # pick a git hash / tag to point to
24+
rev: '7.3.0' # pick a git hash / tag to point to
2525
hooks:
2626
- id: flake8
2727
- repo: local

pycheribuild/config/compilation_targets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ def essential_compiler_and_linker_flags_impl(
277277
# Use the insane RISC-V arch string to enable CHERI
278278
result.append("-march=" + cls.get_riscv_arch_string(xtarget, softfloat=softfloat))
279279
result.append("-mabi=" + cls.get_riscv_abi(xtarget, softfloat=softfloat))
280-
result.append("-mrelax" if _linker_supports_riscv_relaxations(instance.linker, config, xtarget) else "-mno-relax")
280+
result.append(
281+
"-mrelax" if _linker_supports_riscv_relaxations(instance.linker, config, xtarget) else "-mno-relax"
282+
)
281283

282284
if cls.is_baremetal() or cls.is_rtems():
283285
# Both RTEMS and baremetal FreeRTOS are linked above 0x80000000

0 commit comments

Comments
 (0)