Skip to content

Commit

Permalink
Pre-commit auto-update (#16965)
Browse files Browse the repository at this point in the history
Updated the version of the ruff-pre-commit repository to enhance linting capabilities with potential bug fixes and performance improvements.
Lower the frequency of auto-update to minimize maintainence time
Updated Ruff elsewhere
remove git submodules clone from pre-commit, as it cuts the time a lot, and we don't commit to these repositories through pre-commit.ci fixes. We also do not need them for the checks we perform
  • Loading branch information
pre-commit-ci[bot] committed Aug 6, 2024
1 parent 1dc4aba commit b4831e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:
# Can't run Windows scripts on Linux
# These also do not apply fixes, only run tests
skip: [scons-source, checkPot, unitTest, licenseCheck]
submodules: true
autoupdate_schedule: monthly
autoupdate_commit_msg: "Pre-commit auto-update"
autofix_commit_msg: "Pre-commit auto-fix"

Expand Down Expand Up @@ -36,7 +36,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Matches Ruff version in requirements.
rev: v0.5.5
rev: v0.5.6
hooks:
- id: ruff
name: lint with ruff
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sphinx==7.2.6
sphinx_rtd_theme==1.3.0

# Requirements for automated linting
ruff==0.5.5
ruff==0.5.6
pre-commit==3.7.1

# Runing automated license checks
Expand Down
2 changes: 1 addition & 1 deletion user_docs/en/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Please refer to [the developer guide](https://www.nvaccess.org/files/nvda/docume
* Component updates:
* Updated py2exe to 0.13.0.2 (#16907, @dpy013)
* Updated setuptools to 72.0 (#16907, @dpy013)
* Updated Ruff to 0.5.5. (#16868, @LeonarddeR)
* Updated Ruff to 0.5.6. (#16868, @LeonarddeR)
* Added a `.editorconfig` file to NVDA's repository in order for several IDEs to pick up basic NVDA code style rules by default. (#16795, @LeonarddeR)
* Added support for custom speech symbol dictionaries. (#16739, #16823, @LeonarddeR)
* Dictionaries can be provided in locale specific folders in an add-on package, e.g. `locale\en`.
Expand Down

0 comments on commit b4831e5

Please sign in to comment.