Skip to content

Commit aecee08

Browse files
authored
Merge pull request #74 from nvdaes/template
Prepare for 2026.1
2 parents 0434fe6 + 8c65c3e commit aecee08

38 files changed

Lines changed: 1053 additions & 396 deletions

.github/workflows/checkTranslatorsComments.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v5
2121

22-
- name: Set up Python 3.8
23-
uses: actions/setup-python@v5
22+
- name: Set up Python 3.13
23+
uses: actions/setup-python@v6
2424
with:
25-
python-version: 3.8
25+
python-version: 3.13
2626

2727
- name: Install dependencies
2828
run: |

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ addon/doc/*.css
22
addon/doc/en/
33
*_docHandler.py
44
*.html
5-
addon/*.ini
6-
addon/locale/*/*.ini
5+
manifest.ini
76
*.mo
87
*.pot
9-
*.pyc
8+
*.py[co]
109
*.nvda-addon
1110
.sconsign.dblite
11+
/[0-9]*.[0-9]*.[0-9]*.json

.pre-commit-config.yaml

Lines changed: 7 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
# File from https://github.com/nvaccess/nvda
1+
# Copied from https://github.com/nvaccess/nvda
22
# https://pre-commit.ci/
33
# Configuration for Continuous Integration service
44
ci:
5-
# Can't run Windows scons scripts on Linux.
6-
# unit testing requires our python environment,
7-
# which cannot be configured with pre-commit.ci:
8-
# https://stackoverflow.com/questions/70778806/pre-commit-not-using-virtual-environment .
9-
# Can't run licenseCheck as it relies on telemetry,
10-
# which CI blocks.
115
# Pyright does not seem to work in pre-commit CI
12-
skip: [checkPo, scons-source, checkPot, unitTest, licenseCheck, pyright]
6+
skip: [pyright]
137
autoupdate_schedule: monthly
148
autoupdate_commit_msg: "Pre-commit auto-update"
159
autofix_commit_msg: "Pre-commit auto-fix"
@@ -36,13 +30,9 @@ repos:
3630
hooks:
3731
# Prevents commits to certain branches
3832
- id: no-commit-to-branch
39-
args: ["--branch", "master", "--branch", "beta", "--branch", "rc"]
33+
args: ["--branch", "main", "--branch", "master", ]
4034
# Checks that large files have not been added. Default cut-off for "large" files is 500kb.
4135
- id: check-added-large-files
42-
# POFiles and TTF fonts can't be made smaller
43-
exclude_types: ["pofile", "ttf"]
44-
# Same applies for NVDA dictionary (.dic) files and Spline Font Database (.SFD) files, but these aren't recognised by the Identify library.
45-
exclude: "\\.(dic|sfd)$"
4636
# Checks python syntax
4737
- id: check-ast
4838
# Checks for filenames that will conflict on case insensitive filesystems (the majority of Windows filesystems, most of the time)
@@ -65,31 +55,10 @@ repos:
6555
- id: check-toml
6656
# Validates YAML files.
6757
- id: check-yaml
68-
# Validates XML files.
69-
- id: check-xml
7058
# Ensures that links to lines in files under version control point to a particular commit.
7159
- id: check-vcs-permalinks
7260
# Avoids using reserved Windows filenames.
7361
- id: check-illegal-windows-names
74-
# Checks that tests are named test_*.py.
75-
- id: name-tests-test
76-
args: ["--unittest"]
77-
# Exclude Python files under `tests/` that aren't unittest files.
78-
# This is a Python verbose regular expression.
79-
# See https://docs.python.org/3/library/re.html#re.VERBOSE
80-
exclude: |
81-
(?x)^tests/(
82-
checkPot.py | # Doesn't use unittest
83-
system | # Uses robot
84-
unit/ (
85-
# Test helpers
86-
textProvider.py |
87-
extensionPointTestHelpers.py |
88-
objectProvider.py |
89-
test_speechManager/speechManagerTestHarness.py
90-
)
91-
)
92-
9362
- repo: https://github.com/asottile/add-trailing-comma
9463
rev: v3.2.0
9564
hooks:
@@ -108,57 +77,11 @@ repos:
10877
- id: ruff-format
10978
name: format with ruff
11079

111-
- repo: https://github.com/RobertCraigie/pyright-python
112-
rev: v1.1.406
113-
hooks:
114-
- id: pyright
115-
name: Check types with pyright
116-
additional_dependencies: [ "pyright[nodejs]==1.1.406" ]
117-
118-
- repo: https://github.com/astral-sh/uv-pre-commit
119-
rev: 0.8.4
120-
hooks:
121-
- id: uv-lock
122-
name: Verify uv lock file
123-
# Override python interpreter from .python-versions as that is too strict for pre-commit.ci
124-
args: ["-p3.13"]
125-
126-
- repo: https://github.com/DavidAnson/markdownlint-cli2
127-
rev: v0.18.1
128-
hooks:
129-
- id: markdownlint-cli2
130-
name: Lint markdown files
131-
args: ["--fix"]
132-
13380
- repo: local
13481
hooks:
135-
- id: checkPo
136-
name: Check po files
137-
entry: uv run source/l10nUtil.py checkPo
138-
language: python
139-
types: [pofile]
140-
- id: scons-source
141-
name: build c/c++ files
142-
entry: cmd.exe /c "scons source --all-cores"
143-
language: system
144-
pass_filenames: false
145-
types_or: [c, c++]
146-
- id: checkPot
147-
name: translation string check
148-
entry: cmd.exe /c "scons checkPot --all-cores"
82+
83+
- id: pyright
84+
name: type check with pyright
85+
entry: uv run pyright
14986
language: system
150-
pass_filenames: false
15187
types: [python]
152-
files: ^source/.*$
153-
- id: unitTest
154-
name: unit tests
155-
entry: ./rununittests.bat
156-
language: script
157-
pass_filenames: false
158-
types_or: [python, c, c++, batch]
159-
- id: licenseCheck
160-
name: Check license compatibility of pip dependencies
161-
files: ^(runlicensecheck\.bat|pyproject\.toml)$
162-
entry: ./runlicensecheck.bat
163-
language: script
164-
pass_filenames: false

addon/doc/bg/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,3 @@
201201
* Първоначално издание.
202202

203203
[[!tag dev stable]]
204-

addon/doc/da/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,3 @@ Bemærkninger:
195195
* Første version.
196196

197197
[[!tag dev stable]]
198-

addon/doc/de/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,3 @@ Anmerkungen:
205205
* Erstveröffentlichung.
206206

207207
[[!tag dev stable]]
208-

addon/doc/es/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,3 @@ Notas:
198198
* Versión inicial.
199199

200200
[[!tag dev stable]]
201-

addon/doc/fi/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,3 @@ Huomautuksia:
191191
* Ensimmäinen versio.
192192

193193
[[!tag dev stable]]
194-

addon/doc/fr/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,3 @@ Notes :
206206
* Première version.
207207

208208
[[!tag dev stable]]
209-

addon/doc/gl/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,3 @@ Notas:
194194
* Versión inicial.
195195

196196
[[!tag dev stable]]
197-

0 commit comments

Comments
 (0)