tabcmd icon indicating copy to clipboard operation
tabcmd copied to clipboard

Jac/more mypy checks

Open jacalata opened this issue 1 year ago • 1 comments

enabled 'check_untyped_defs' so that methods without explicit type identifiers are still checked by mypy. Found a number of places that this didn't work, so created comments to make an exception where needed.

Some minor refactoring needed to get types or null cases recognized, and run_command method was changed from static to class method.

jacalata avatar May 06 '24 22:05 jacalata

Coverage

Coverage Report
FileStmtsMissCoverMissing
tabcmd
   __main__.py101010 0%
   tabcmd.py151515 0%
   version.py633 50%
tabcmd/commands
   commands.py101010 0%
   constants.py771515 81%
   server.py1262626 79%
tabcmd/commands/auth
   session.py3664545 88%
tabcmd/commands/datasources_and_workbooks
   datasources_and_workbooks_command.py1171212 90%
   delete_command.py601616 73%
   export_command.py1282828 78%
   get_url_command.py1896161 68%
   publish_command.py852424 72%
   runschedule_command.py2177 67%
tabcmd/commands/extracts
   create_extracts_command.py4288 81%
   decrypt_extracts_command.py2722 93%
   delete_extracts_command.py3766 84%
   encrypt_extracts_command.py2722 93%
   extracts.py2022 90%
   reencrypt_extracts_command.py2722 93%
   refresh_extracts_command.py481313 73%
tabcmd/commands/group
   create_group_command.py2955 83%
   delete_group_command.py2722 93%
tabcmd/commands/project
   create_project_command.py4688 83%
   delete_project_command.py3544 89%
   publish_samples_command.py3044 87%
tabcmd/commands/site
   create_site_command.py3455 85%
   delete_site_command.py2822 93%
   edit_site_command.py3822 95%
   list_command.py441010 77%
   list_sites_command.py2922 93%
tabcmd/commands/user
   create_site_users.py571010 82%
   create_users_command.py601010 83%
   delete_site_users_command.py4355 88%
   user_data.py2213131 86%
tabcmd/execution
   _version.py222 0%
   global_options.py1452323 84%
   localize.py691111 84%
   logger_config.py4266 86%
   tabcmd_controller.py3855 87%
TOTAL263245483% 

github-actions[bot] avatar May 06 '24 22:05 github-actions[bot]