Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jac/more mypy checks #287

Open
wants to merge 52 commits into
base: development
Choose a base branch
from
Open

Jac/more mypy checks #287

wants to merge 52 commits into from

Conversation

jacalata
Copy link
Contributor

@jacalata jacalata commented May 6, 2024

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 and others added 6 commits April 26, 2024 13:41
Remove python 3.7
* implement thumbnail options. (including 'not yet implemented' message for --thumbnail-group)
* Implement overwrite/append/replace arguments (including not-yet-implemented message for --replace)
* clarified help content for extract-encryption and some other not-implemented options
* added tests for all valid publish command options
* error log cleanup: better stacktrace, less repetition
Also change a print statement to log statement
(cherry picked from commit ef93fff)
@jacalata jacalata added the enhancement code quality/infrastructure update label May 6, 2024
Copy link

github-actions bot commented May 6, 2024

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% 

jacalata and others added 22 commits May 9, 2024 11:34
* skip .po and .properties files
* pin pyinstaller to 5.13

Co-authored-by: Andy Young <90729701+anyoung-tableau@users.noreply.github.com>
* test robustness
- add skip-connection-check so it can run against local server
- fix bug revealed where it was confused by the Default server
- fix asset names to go with assets in repo
- fail fast if publishing fails (because all the following tests will also fail)
- fail cleanly if you forget to enter any command

* add content in the tests\assets dir, update gitignore
* remove import being added back
* format w black
* specify version of black expected
* Fix logic in test_list_sites E2E test
* Update dependencies
- move TSC pin to latest 0.31
- relax urllib3 version range to avoid conflict w/TSC
* implement thumbnail options. (including 'not yet implemented' message for --thumbnail-group)
* Implement overwrite/append/replace arguments (including not-yet-implemented message for --replace)
* clarified help content for extract-encryption and some other not-implemented options
* added tests for all valid publish command options
* error log cleanup: better stacktrace, less repetition
Also change a print statement to log statement
(cherry picked from commit ef93fff)
A lot of changes to the dodo code, but it's mostly
a) handling file paths better
b) moving the 'merge files' step before the 'generate po' step
c) automating some processing I did manually in the past to remove lines that caused problems
There is a group of strings I appear to have added manually that was deleted with the new loc file dump, and another group of string keys that are used in code and don't appear in properties.
Adding here to not lose them, but hope to find they are not necessary.
Add copyright, fix handling of strings with '=' in them
jacalata and others added 24 commits July 18, 2024 23:45
these should make the process of updating strings straightforward in the future, and create intermediate outputs to help with debugging if it is not.

Validated with the windows package only so far.
Removed a duplicate string from extras.properties
Adding the newly generated .mo files
and remove test on a string that no longer exists
- replace double quotes with single
- cleaner file globs
- remove no-op encoding
- fix copyright
Also add to automation a step where I replaced two-single-quote chars with one.
Add a large number of new localized strings
* implement thumbnail options. (including 'not yet implemented' message for --thumbnail-group)
* Implement overwrite/append/replace arguments (including not-yet-implemented message for --replace)
* clarified help content for extract-encryption and some other not-implemented options
* added tests for all valid publish command options
* error log cleanup: better stacktrace, less repetition
Also change a print statement to log statement
(cherry picked from commit ef93fff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement code quality/infrastructure update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants