Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/prek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
- uses: j178/prek-action@44924fe9ef4a6f88253c4b6b1bf11c689d3ce53d # v3.1.0
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Hooks run against this repository itself.
repos:
- repo: https://github.com/rbubley/mirrors-prettier
rev: 5c9b20b95f2bc1c4d3d929b83a96d5c96a29e752 # frozen: v3.9.8
rev: 331f33fa4dfbcbca7c3da3620c137fde0faab273 # frozen: v3.9.10
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 7ff8d35ae36a7d2b968f2f90b4c723e292e594ee # frozen: v2.3.1
rev: 2834ec6639549dd6796205c8f011dedcd587288b # frozen: v2.4.0
hooks:
- id: mypy
# Check the package as a whole (per pyproject `files`), not file by file,
Expand All @@ -15,7 +15,7 @@ repos:
# Ruff's linter covers the pyflakes (F) rules and more, complementing mypy by reporting unused imports and names,
# which mypy --strict does not. The formatter keeps Python style consistent (prettier does not touch .py).
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 2eeb5678de71a00c0902cbda7105d328432f72cb # frozen: v0.16.8
rev: f368fb366ff7f2f808dd324b83a6d32267799e19 # frozen: v0.17.2
hooks:
- id: ruff-check
args: [--fix]
Expand Down
32 changes: 16 additions & 16 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# pre-commit passes them, falling back to the whole repo when run standalone or
# with `--all-files`. Only the fixers set require_serial.
#
# Every hook pins language_version: python3.14 -- the checks match paths with
# Every hook pins language_version: python3.15 -- the checks match paths with
# PurePath.full_match, added in 3.13 (see pyproject.toml requires-python).

- id: mps-check-orphan-modules
Expand All @@ -18,7 +18,7 @@
Report MPS modules (*.msd / *.mpl / *.devkit) present on disk but not registered in any .mps/modules.xml.
entry: python -m mps_pre_commit_hooks.check_orphan_modules
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -30,7 +30,7 @@
[--exclude=GLOB].
entry: python -m mps_pre_commit_hooks.check_unbuilt_modules
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -41,7 +41,7 @@
remove them. Exclude projects whose missing module targets are expected with args: [--exclude=GLOB].
entry: python -m mps_pre_commit_hooks.check_missing_modules
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -52,7 +52,7 @@
projects whose missing module targets are expected with args: [--exclude=GLOB].
entry: python -m mps_pre_commit_hooks.check_missing_modules --fix
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
require_serial: true
always_run: true
Expand All @@ -63,7 +63,7 @@
Report MPS model files (*.mps / *.mpsr / .model) that live outside any module's declared default model root.
entry: python -m mps_pre_commit_hooks.check_orphan_models
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -74,7 +74,7 @@
declared source roots. Exclude module descriptors whose empty roots are expected with args: [--exclude=GLOB].
entry: python -m mps_pre_commit_hooks.check_empty_model_roots
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -84,7 +84,7 @@
Report *.mpsr files whose directory has no .model header file, without which MPS cannot load them.
entry: python -m mps_pre_commit_hooks.check_orphan_mpsr_files
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: false
always_run: true

Expand All @@ -107,7 +107,7 @@
descriptors (*.msd / *.mpl / *.devkit), and .mps/modules.xml / .mps/libraries.xml.
entry: check-xml
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '(\.(msd|mpl|devkit|mps|mpsr|model)$)|((^|/)\.mps/(modules|libraries)\.xml$)'

Expand All @@ -119,7 +119,7 @@
owning module records for that language in its descriptor's <languageVersions>.
entry: python -m mps_pre_commit_hooks.check_language_versions
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '\.(mps|model|msd|mpl|devkit|mpst)$'

Expand All @@ -130,7 +130,7 @@
matched by language and concept id, not name.
entry: python -m mps_pre_commit_hooks.check_test_info
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '\.(mps|mpsr)$'

Expand All @@ -141,7 +141,7 @@
exact, e.g. --ban=main@generator catches a generator model left with MPS' default unqualified name.
entry: python -m mps_pre_commit_hooks.check_banned_model_names
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '\.(mps|model)$'

Expand All @@ -153,7 +153,7 @@
[--allow-nested-runtime] and [--allow-nested-sandbox].
entry: python -m mps_pre_commit_hooks.check_module_naming
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '\.(msd|mpl|devkit)$'

Expand All @@ -166,7 +166,7 @@
[--no-short-names] (language models keep the short form).
entry: python -m mps_pre_commit_hooks.check_model_naming
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '\.(mps|model)$'

Expand All @@ -177,7 +177,7 @@
Read-only; use mps-fix-path-variables to rewrite them.
entry: python -m mps_pre_commit_hooks.check_path_variables
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
files: '(^|/)\.mps/(modules|libraries)\.xml$'

Expand All @@ -188,7 +188,7 @@
resolves to the repository root. Modifies files; review the result (see the README caveat).
entry: python -m mps_pre_commit_hooks.check_path_variables --fix
language: python
language_version: python3.14
language_version: python3.15
pass_filenames: true
require_serial: true
files: '(^|/)\.mps/(modules|libraries)\.xml$'
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.14
3.15
Loading