Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nvdaaddons/AddonTemplate
Browse files Browse the repository at this point in the history
…into template
  • Loading branch information
cary-rowen committed Apr 14, 2024
2 parents 8cf2ae0 + e3fa6d5 commit 74e3457
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ms-python.python",
"ms-python.vscode-pylance",
"redhat.vscode-yaml",
"ms-python.flake8" // flake8 extension version <= v2023.4.0
"ms-python.flake8"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
Expand Down
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.insertSpaces": false,
"python.analysis.diagnosticSeverityOverrides": {
"reportUndefinedVariable": "none"
},
"python.analysis.stubPath": "${workspaceFolder}/.vscode/typings",
"python.analysis.extraPaths": [
"../nvda/source",
"../nvda/miscDeps/python"
Expand Down
6 changes: 6 additions & 0 deletions .vscode/typings/__builtins__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def _(msg: str) -> str:
...


def pgettext(context: str, message: str) -> str:
...
2 changes: 2 additions & 0 deletions flake8.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ ignore =

builtins = # inform flake8 about functions we consider built-in.
_, # translation lookup
ngettext, # translation lookup
pgettext, # translation lookup
npgettext, # translation lookup

exclude = # don't bother looking in the following subdirectories / files.
.git,
Expand Down
3 changes: 2 additions & 1 deletion sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def createAddonBundleFromPath(path, dest):
absPath = os.path.join(dir, filename)
if pathInBundle not in buildVars.excludedFiles:
z.write(absPath, pathInBundle)
createAddonStoreJson(dest)
# Add-on store does not require submitting json files.
# createAddonStoreJson(dest)
return dest


Expand Down

0 comments on commit 74e3457

Please sign in to comment.