Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
Issue and test deprecation warnings#1886
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Byron merged 89 commits intogitpython-developers:mainfromEliahKagan:deprecation-warningsMar 31, 2024
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
89 commits Select commitHold shift + click to select a range
2382891
Test that deprecated Diff.renamed property warns
EliahKagane7dec7d
Have the deprecated Diff.renamed property issue a warning
EliahKagana8f109c
Fix exception in Popen.__del__ in test on Windows
EliahKaganfffa6ce
Test that the preferred renamed_file property does not warn
EliahKaganbc111b7
Add a TODO for simplifying the single_diff fixture
EliahKagane3728c3
Decompose new fixture logic better
EliahKaganff4b58d
Extract no-deprecation-warning asserter as a context manager
EliahKagan2c52696
Test that the deprecated Commit.trailers property warns
EliahKagan03464d9
Have the deprecated Commit.trailers property issue a warning
EliahKagan9d096e0
Test that Traversable.{list_,}traverse, but not overrides, warn
EliahKagan21c2b72
Use the :exc: Sphinx role for DeprecationWarning
EliahKaganca385a5
Test that subclassing deprecated git.util.Iterable warns
EliahKagan8bbcb26
Call repo.close() instead of manually collecting
EliahKaganb8ce990
Better name and document the basic deprecation test module
EliahKagan61273aa
Annotate basic deprecation tests; have mypy scan it
EliahKaganb7a3d8c
Start on top-level module attribute access regression tests
EliahKagan105f500
Test attribute access and importing separately
EliahKagan859e38c
Expand to test top-level deprecated names
EliahKagan46a739d
Hoist `import git` to module level in test module
EliahKagana2df3a8
Test static typing of private module aliases
EliahKagana15a830
Improve a couple test case docstrings
EliahKagandbaa535
Add a couple missing assert keywords
EliahKagand00c843
Clarify how test_private_module_aliases is statically checkable
EliahKagan983fda7
Move mark-sharing tests into a class
EliahKagan19acd4c
Add FIXME for what to do next
EliahKaganf39bbb5
Fix a test docstring
EliahKaganaee7078
Test resolution into git.index.util using git.util
EliahKagan7f4a191
Fix brittle way of checking warning messages
EliahKagand08a576
Clarify todo
EliahKagan9d58e6d
Start reorganizing new tests more in the GitPython style
EliahKagan45c128b
Finish reorganizing; fix assertion for duplicated messages
EliahKagan247dc15
Add imports so pyright recognizes refs and index
EliahKaganb05963c
Expand and clarify test module docstring
EliahKagan074bbc7
Tiny import tweak
EliahKagan18608e4
Pick a better name for _MODULE_ALIAS_TARGETS
EliahKagan1f290f1
Use typing_extensions only if needed
EliahKagan7a4f7eb
Fix zip calls
EliahKagan5977a6e
Fix (and improve wording) of docstrings
EliahKagan5b1fa58
Remove extra import "from typing_extensions"
EliahKagana07be0e
Start on test_compat
EliahKagand4917d0
Expand to test all three is_<platform> aliases
EliahKaganf4e5f42
Slightly improve docstrings
EliahKagand54f851
Add test of dir() on git.compat
EliahKaganaaf046a
Add static type assertions to is_platform test
EliahKagan84d734d
Refactor test_compat.test_dir for clarity
EliahKagan3a621b3
Add top-level dir() tests
EliahKagan05e0878
Remove old comment meant as todo (that was done)
EliahKagan3fe2f15
Test that top-level aliases point to modules with normal __name__
EliahKagan246cc17
Use names directly on other tests
EliahKagand7b6b31
Fix a small docstring typo
EliahKagan96089c8
Improve description in test module docstrings
EliahKagana0ef537
Start on test_types
EliahKagan52e7360
Explain substring assertions in test_toplevel
EliahKagane3675a0
Expand Lit_commit_ish test name and write docstring
EliahKagan4857ff0
Clarify test_compat.test_dir
EliahKagan488cc13
Add test of dir() on git.types
EliahKagan19b3c08
Clarify comment about is_<platform> value assertions
EliahKagan28bd4a3
Issue warnings for some deprecated attributes of modules
EliahKagandffa930
Refine deprecated module attributes and their warnings
EliahKagan7ab27c5
Start on test module about Git.USE_SHELL and Git attributes
EliahKaganaf723d5
Make test_use_shell_on_class more robust
EliahKaganbf13888
Write most remaining Git attribute/deprecation tests
EliahKagan602de0c
Begin multiprocessing misadventure
EliahKagand4b50c9
Somewhat clarify multiprocessing misadventure
EliahKagan02c2f00
Discuss multiprocessing in test module docstring; remove bad test
EliahKagan46df79f
Discuss metaclass conflicts in test module docstring
EliahKagan40ed842
Revise test module docstring for clarity
EliahKagan6a35261
Test that USE_SHELL is unittest.mock.patch patchable
EliahKagane725c82
Make the restore_use_shell_state fixture more robust
EliahKagan436bcaa
Add `type: ignore` in test that we can't set USE_SHELL on instances
EliahKaganfebda6f
Clarify unittest.mock.patch patchability test docstring
EliahKagan4037108
Test that Git.execute's own read of USE_SHELL does not warn
EliahKagan0e311bf
Suppress type errors in restore_use_shell_state _USE_SHELL branches
EliahKagandf4c5c0
Fix wrong/unclear grammar in test_instance_dir docstring
EliahKagand38e721
Issue warnings whenever Git.USE_SHELL is accessed
EliahKagan05de5c0
Implement instance USE_SHELL lookup in __getattr__
EliahKagan04eb09c
Have USE_SHELL warn but work like normal via super()
EliahKaganc6f518b
Keep mypy from thinking Git has arbitrary class attributes
EliahKaganc5d5b16
Clarify that the private name mangling is intentional
EliahKagan84bf2ca
Read USE_SHELL in Git.execute without DeprecationWarning
EliahKagan5bef7ed
Add GitPython project top comments to new test modules
EliahKagan3da47c2
Hide `del util` from type checkers
EliahKaganbdabb21
Expand USE_SHELL docstring; clarify a test usage
EliahKaganb51b080
Explain the approach in test.deprecation to static checking
EliahKagan7cd3aa9
Make test.performance.lib docstring more specific
EliahKagancf2576e
Make/use test.deprecation.lib; abandon idea to filter by module
EliahKaganf92f4c3
Clarify security risk in USE_SHELL doc and warnings
EliahKagan8327b45
Test GitMeta alias
EliahKaganf6060df
Add GitMeta alias
EliahKaganFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion.github/workflows/pythonpackage.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
109 changes: 83 additions & 26 deletionsgit/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
135 changes: 123 additions & 12 deletionsgit/cmd.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.