Skip to content

Commit

Permalink
Added .pre-commit-config.yaml; Added actual buildVars; File reorganiz…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
Luke Davis authored and Luke Davis committed Feb 11, 2023
1 parent cea4fcc commit e5bd2cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-yaml
File renamed without changes.
25 changes: 12 additions & 13 deletions buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,47 @@ def _(arg):
# Add-on information variables
addon_info = {
# add-on Name/identifier, internal for NVDA
"addon_name": "addonTemplate",
"addon_name": "versionCollector",
# Add-on summary, usually the user visible name of the addon.
# Translators: Summary for this add-on
# to be shown on installation and add-on information found in Add-ons Manager.
"addon_summary": _("Add-on user visible name"),
"addon_summary": _("Version Collector"),
# Add-on description
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""Description for the add-on.
It can span multiple lines."""),
"addon_description": _("""Keeps a record of all software names and versions used while running NVDA.
Provides a list that can be copied/exported for diagnostics and support."""),
# version
"addon_version": "x.y",
"addon_version": "0.1",
# Author(s)
"addon_author": "name <name@domain.com>",
"addon_author": "Luke Davis <XLTechie@newanswertech.com>",
# URL for the add-on documentation support
"addon_url": None,
# URL for the add-on repository where the source code can be found
"addon_sourceURL": None,
"addon_sourceURL": "https://github.com/XLTechie/versionCollector",
# Documentation file name
"addon_docFileName": "readme.html",
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
"addon_minimumNVDAVersion": None,
"addon_minimumNVDAVersion": "2019.3",
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
"addon_lastTestedNVDAVersion": None,
"addon_lastTestedNVDAVersion": "2022.4",
# Add-on update channel (default is None, denoting stable releases,
# and for development releases, use "dev".)
# Do not change unless you know what you are doing!
"addon_updateChannel": None,
# Add-on license such as GPL 2
"addon_license": None,
"addon_license": "GPL 2",
# URL for the license document the ad-on is licensed under
"addon_licenseURL": None,
"addon_licenseURL": "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html",
}

# Define the python files that are the sources of your add-on.
# You can either list every file (using ""/") as a path separator,
# or use glob expressions.
# For example to include all files with a ".py" extension from the "globalPlugins" dir of your add-on
# the list can be written as follows:
# pythonSources = ["addon/globalPlugins/*.py"]
pythonSources = ["addon/globalPlugins/*.py"]
# For more information on SCons Glob expressions please take a look at:
# https://scons.org/doc/production/HTML/scons-user/apd.html
pythonSources = []

# Files that contain strings for translation. Usually your python sources
i18nSources = pythonSources + ["buildVars.py"]
Expand Down

0 comments on commit e5bd2cf

Please sign in to comment.