Skip to content

chore(pre-commit): update pre-commit hooks and add security check #4327

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

Merged
merged 2 commits into from
Jul 3, 2025

Conversation

PaulYuuu
Copy link
Contributor

@PaulYuuu PaulYuuu commented Jul 1, 2025

  • Upgrade pre-commit-hooks from v4.6.0 to v5.0.0
  • Add detect-private-key hook to prevent accidental private key commits
  • Update ruff-pre-commit from v0.7.0 to v0.12.1

The updates ensure we're using the latest versions of pre-commit hooks
with bug fixes and improvements. The new detect-private-key hook adds an
important security check to prevent sensitive data from being committed.
Ruff update brings newer linting rules and fixes.

Signed-off-by: Yihuang Yu [email protected]

PaulYuuu added 2 commits July 1, 2025 15:46
- Upgrade pre-commit-hooks from v4.6.0 to v5.0.0
- Add detect-private-key hook to prevent accidental private key commits
- Update ruff-pre-commit from v0.7.0 to v0.12.1

The updates ensure we're using the latest versions of pre-commit hooks
with bug fixes and improvements. The new detect-private-key hook adds an
important security check to prevent sensitive data from being committed.
Ruff update brings newer linting rules and fixes.

Signed-off-by: Yihuang Yu <[email protected]>
The changes remove unnecessary string concatenation by combining split
strings into single strings. This improves code readability and
consistency by following Python's string formatting conventions.
The modifications are purely stylistic and do not affect functionality.

The changes were made to:
1. Remove unnecessary string splitting where strings could be written as
single strings
2. Improve code readability by having complete strings on single lines
3. Maintain consistency with Python string formatting conventions
4. Reduce visual noise in the code from unnecessary string concatenation

No functional changes were made - these are purely stylistic
improvements to make the code cleaner and easier to read. The changes
help maintain consistency across the test files and follow Python best
practices for string formatting.

Signed-off-by: Yihuang Yu <[email protected]>
@PaulYuuu
Copy link
Contributor Author

PaulYuuu commented Jul 3, 2025

Regular update, it fixes the style like "a " "b" to "a b"

@PaulYuuu PaulYuuu merged commit 0338997 into autotest:master Jul 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant