paulber19 / wordAccessEnhancementNVDAAddon

NVDA add-on for Microsoft Word text editor
GNU General Public License v2.0
0 stars 2 forks source link

Code proposal: linting and type annotations #1

Open josephsl opened 2 years ago

josephsl commented 2 years ago

Hi Paul,

First, thanks for your hard work on Word Access add-on.

I would like to propose code linting and type annotations for the add-on. As you may know, NVDA uses Flake8 for linting, and parts of the screen reader source code include type annotations. When I ran Flake8 with the add-on source code, i noticed that there are issues such as lints just filled with tab characters and Python idiom issues.

To lint your code with Flake8:

  1. Install Flake8 and Flake8-tabs.
  2. From the command line (PowerShell, for example), move to the root folder of your add-on and enter Flake8 addon/source/file

Thanks.