forked from nvdaes/nvdaL10n
-
Notifications
You must be signed in to change notification settings - Fork 1
Update dependencies #9
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
Open
nvdaes
wants to merge
10
commits into
nvaccess:main
Choose a base branch
from
nvdaes:updateDeps
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4cc9876
Update lock file
nvdaes 2475d2b
Use hyphens for extension name
nvdaes 2397591
Run prek with GitHub Actions, and update install uv
nvdaes c56bc66
Lint readme
nvdaes a7c997d
Update config for add-on template
nvdaes 56e98a5
Update pyproject
nvdaes e6b8b32
Merge branch 'updateDeps' into updateAndLint
nvdaes fe738ec
Update spec collecting modules to run scons source user_docs in NVDA
nvdaes fd81b46
Update pyproject and lock file
nvdaes ca1c70e
Reset addonTemplate.yaml to main branch
nvdaes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // A part of NonVisual Desktop Access (NVDA) | ||
| // Copyright (C) 2025 NV Access Limited | ||
| // This file may be used under the terms of the GNU General Public License, version 2 or later, as modified by the NVDA license. | ||
| // For full terms and any additional permissions, see the NVDA license file: https://github.com/nvaccess/nvda/blob/master/copying.txt | ||
| // | ||
| // Markdown linting rules. | ||
| { | ||
| // Use ATX style headings. E.g. | ||
| // # This is a heading | ||
| "heading-style": { | ||
| "style": "atx" | ||
| }, | ||
| // Don't complain about using tabs in markdown | ||
| "hard_tab": false, | ||
| // Don't complain about lines being too long | ||
| "line-length": false, | ||
| // Only complain about repeated headings in the same part of the document outline | ||
| // Needed for the changelog | ||
| // We could consider enabling this on a file-by-file basis | ||
| "no-duplicate-heading": { | ||
| "siblings_only": true | ||
| }, | ||
| // Several of our markdown files include trailing punctuation in headings | ||
| "no-trailing-punctuation": false, | ||
| // Rule is incompatible with the anchor style we use in the user guide | ||
| "link-fragments": false, | ||
| // Many of our code blocks lack a language | ||
| // This should probably be fixed gradually | ||
| "fenced-code-language": false, | ||
| "ul-style": { | ||
| "style": "asterisk" | ||
| }, | ||
| "table-column-style": { | ||
| // MD060: Tables use single padding around the column delimiters. | ||
| // e.g. | Column 1 | Column 2 | | ||
| "style": "compact" | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.13.12 | ||
| 3.13 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| # Configuration file for `prek`, a git hook framework written in Rust. | ||
| # See https://prek.j178.dev for more information. | ||
| # Based on the .pre-commit-config.yaml file of the NVDA project, and the prek.toml file of the addon-template repositories | ||
| # https://github.com/nvaccess/nvda | ||
| # https://github.com/nvaccess/addonTemplate | ||
|
|
||
| #:schema https://www.schemastore.org/prek.json | ||
| default_language_version = { python = "python3.13" } | ||
|
|
||
| [[repos]] | ||
| repo = "meta" | ||
| hooks = [ | ||
| { id = "check-useless-excludes" }, | ||
| { id = "check-hooks-apply" } | ||
| ] | ||
|
|
||
|
|
||
| # Built-in hooks reimplemented in Rust by prek. No repo clone or environment setup required. | ||
| [[repos]] | ||
| repo = "builtin" | ||
| hooks = [ | ||
| # Prevents commits to certain branches | ||
| { | ||
| id = "no-commit-to-branch", | ||
| args = [ | ||
| "--branch", | ||
| "main", | ||
| "--branch", | ||
| "master" | ||
| ] | ||
| }, | ||
| # Checks that large files have not been added. Default cut-off for "large" files is 500kb. | ||
| { id = "check-added-large-files" }, | ||
| # Checks for filenames that will conflict on case insensitive filesystems (the majority of Windows filesystems, most of the time) | ||
| { id = "check-case-conflict" }, | ||
| # Checks for artifacts from resolving merge conflicts. | ||
| { id = "check-merge-conflict" }, | ||
| # Removes trailing whitespace. | ||
| { | ||
| id = "trailing-whitespace", | ||
| types_or = [ | ||
| "python", | ||
| "c", | ||
| "c++", | ||
| "batch", | ||
| "markdown", | ||
| "toml", | ||
| "yaml", | ||
| "powershell" | ||
| ] | ||
| }, | ||
| # Ensures all files end in 1 (and only 1) newline. | ||
| { | ||
| id = "end-of-file-fixer", | ||
| types_or = [ | ||
| "python", | ||
| "c", | ||
| "c++", | ||
| "batch", | ||
| "markdown", | ||
| "toml", | ||
| "yaml", | ||
| "powershell" | ||
| ] | ||
| }, | ||
| # Removes the UTF-8 BOM from files that have it. | ||
| # See https://github.com/nvaccess/nvda/blob/master/projectDocs/dev/codingStandards.md#encoding | ||
| { | ||
| id = "fix-byte-order-marker", | ||
| types_or = [ | ||
| "python", | ||
| "c", | ||
| "c++", | ||
| "batch", | ||
| "markdown", | ||
| "toml", | ||
| "yaml", | ||
| "powershell" | ||
| ] | ||
| }, | ||
| # Validates TOML files. | ||
| { id = "check-toml" }, | ||
| # Validates YAML files. | ||
| { id = "check-yaml" }, | ||
| # Ensures that links to lines in files under version control point to a particular commit. | ||
| { id = "check-vcs-permalinks" } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/pre-commit/pre-commit-hooks" | ||
| rev = "v6.0.0" | ||
| hooks = [ | ||
| { id = "check-ast" }, | ||
| { id = "debug-statements" }, | ||
| ] | ||
|
nvdaes marked this conversation as resolved.
|
||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/kjanat/actionlint" | ||
| rev = "v1.12.0" | ||
| hooks = [ | ||
| { id = "actionlint" } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/asottile/add-trailing-comma" | ||
| rev = "v4.0.0" | ||
| hooks = [ | ||
| { | ||
| id = "add-trailing-comma", | ||
| groups = ["autofix"] | ||
| } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/astral-sh/ruff-pre-commit" | ||
| rev = "v0.16.3" | ||
| hooks = [ | ||
| { | ||
| id = "ruff", | ||
| name = "lint with ruff", | ||
| groups = ["autofix"], | ||
| args = ["--fix"] | ||
| }, | ||
| { | ||
| id = "ruff-format", | ||
| name = "format with ruff", | ||
| groups = ["autofix"] | ||
| } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/astral-sh/uv-pre-commit" | ||
| rev = "0.12.5" | ||
| hooks = [ | ||
| { | ||
| id = "uv-lock", | ||
| name = "Verify uv lock file", | ||
| groups = ["autofix"], | ||
| args = ["-p3.13"] | ||
| } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/DavidAnson/markdownlint-cli2" | ||
| rev = "v0.23.2" | ||
| hooks = [ | ||
| { | ||
| id = "markdownlint-cli2", | ||
| name = "Lint markdown files", | ||
| groups = ["autofix"], | ||
| args = ["--fix"] | ||
| } | ||
| ] | ||
|
|
||
| [[repos]] | ||
| repo = "https://github.com/astral-sh/ty-pre-commit" | ||
| rev = "v0.0.73" | ||
| hooks = [ | ||
| { | ||
| id = "ty", | ||
| name = "type check with ty", | ||
| always_run = false, | ||
| types = ["python"], | ||
| } | ||
| ] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.