-
Notifications
You must be signed in to change notification settings - Fork 25
[pre-commit.ci] pre-commit suggestions #440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
960b869 to
979de67
Compare
8fa489b to
a336fd4
Compare
updates: - [github.com/executablebooks/mdformat: 0.7.22 → 1.0.0](hukkin/mdformat@0.7.22...1.0.0) - [github.com/JoC0de/pre-commit-prettier: b3e25fa39aa676c36bc18eb9eae6f26d9bb63f39 → v3.7.4](JoC0de/pre-commit-prettier@b3e25fa...v3.7.4) - [github.com/astral-sh/ruff-pre-commit: v0.12.11 → v0.14.10](astral-sh/ruff-pre-commit@v0.12.11...v0.14.10) - [github.com/sphinx-contrib/sphinx-lint: v1.0.0 → v1.0.2](sphinx-contrib/sphinx-lint@v1.0.0...v1.0.2) - [github.com/tox-dev/pyproject-fmt: v2.6.0 → v2.11.1](tox-dev/pyproject-fmt@v2.6.0...v2.11.1)
ffa974a to
462e04c
Compare
Co-authored-by: Bhimraj Yadav <bhimrajyadav977@gmail.com>
for more information, see https://pre-commit.ci
Pull request was converted to draft
|
requires #463 |
|
mdformat was unblocked by butler54/mdformat-frontmatter#38 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates pre-commit hook dependencies to their latest versions and addresses regex pattern matching issues in test files by using re.escape() to properly escape special characters in pytest match patterns.
Changes:
- Updated 5 pre-commit hook dependencies to newer versions (mdformat, prettier, ruff, sphinx-lint, pyproject-fmt)
- Fixed pytest regex matching by using
re.escape()for patterns containing special regex characters - Added missing
remodule import totest_rank_zero.py
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.pre-commit-config.yaml |
Updated versions for mdformat (0.7.22→1.0.0), prettier (b3e25fa→v3.7.4), ruff (v0.12.11→v0.14.10), sphinx-lint (v1.0.0→v1.0.2), and pyproject-fmt (v2.6.0→v2.11.1) |
tests/unittests/core/test_rank_zero.py |
Added re module import and wrapped pytest match pattern with re.escape() to handle special regex characters |
tests/unittests/core/test_imports.py |
Wrapped pytest match patterns with re.escape() in two test functions to properly escape special regex characters like parentheses and periods |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
updates:
📚 Documentation preview 📚: https://lit-utilities--440.org.readthedocs.build/en/440/