Issue and test deprecation warnings#1886
Merged
Byron merged 89 commits intogitpython-developers:maingitpython-developers/GitPython:mainfrom Mar 31, 2024
EliahKagan:deprecation-warningsEliahKagan/GitPython:deprecation-warningsCopy head branch name to clipboard
Commits
Commits on Mar 28, 2024
Test that deprecated Diff.renamed property warns
Show description for 2382891committed- committed
Fix exception in Popen.__del__ in test on Windows
Show description for a8f109ccommitted- committed
- committed
Decompose new fixture logic better
Show description for e3728c3committedExtract no-deprecation-warning asserter as a context manager
Show description for ff4b58dcommittedTest that the deprecated Commit.trailers property warns
Show description for 2c52696committed- committed
- committed
Use the :exc: Sphinx role for DeprecationWarning
Show description for 21c2b72committedTest that subclassing deprecated git.util.Iterable warns
Show description for ca385a5committedCall repo.close() instead of manually collecting
Show description for 8bbcb26committedBetter name and document the basic deprecation test module
Show description for b8ce990committed
Commits on Mar 29, 2024
Annotate basic deprecation tests; have mypy scan it
Show description for 61273aacommitted- committed
Test attribute access and importing separately
Show description for 105f500committed- committed
Hoist `import git` to module level in test module
Show description for 46a739dcommittedTest static typing of private module aliases
Show description for a2df3a8committed- committed
- committed
- committed
- committed
- committed
- committed
- committed
Fix brittle way of checking warning messages
Show description for 7f4a191committed- committed
- committed
Finish reorganizing; fix assertion for duplicated messages
Show description for 45c128bcommittedAdd imports so pyright recognizes refs and index
Show description for 247dc15committedExpand and clarify test module docstring
Show description for b05963ccommitted- committed
Pick a better name for _MODULE_ALIAS_TARGETS
Show description for 18608e4committedUse typing_extensions only if needed
Show description for 1f290f1committedFix zip calls
Show description for 7a4f7ebcommitted- committed
- committed
Start on test_compat
Show description for a07be0ecommitted- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
Use names directly on other tests
Show description for 246cc17committed- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
- committed
Refine deprecated module attributes and their warnings
Show description for dffa930committed- committed
- committed
- committed
Begin multiprocessing misadventure
Show description for 602de0ccommitted- committed
- committed
- committed
- committed
- committed
- committed
Add `type: ignore` in test that we can't set USE_SHELL on instances
Show description for 436bcaacommitted- committed
Test that Git.execute's own read of USE_SHELL does not warn
Show description for 4037108committedSuppress type errors in restore_use_shell_state _USE_SHELL branches
Show description for 0e311bfcommitted- committed
Issue warnings whenever Git.USE_SHELL is accessed
Show description for d38e721committedImplement instance USE_SHELL lookup in __getattr__
Show description for 05de5c0committedHave USE_SHELL warn but work like normal via super()
Show description for 04eb09ccommittedKeep mypy from thinking Git has arbitrary class attributes
Show description for c6f518bcommitted- committed
Read USE_SHELL in Git.execute without DeprecationWarning
Show description for 84bf2cacommitted- committed
Hide `del util` from type checkers
Show description for 3da47c2committedExpand USE_SHELL docstring; clarify a test usage
Show description for bdabb21committedExplain the approach in test.deprecation to static checking
Show description for b51b080committed
Commits on Mar 30, 2024
Make test.performance.lib docstring more specific
Show description for 7cd3aa9committedMake/use test.deprecation.lib; abandon idea to filter by module
Show description for cf2576ecommitted
Commits on Mar 31, 2024
- committed
- committed
Add GitMeta alias
Show description for f6060dfcommitted