Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typing issues with delete_head and Remote.add | Russ Allbery | 2021-09-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. This unfortunately requires suppressing type warnings in the signature of RemoteReference.delete, since it inherits from Head but does not accept str (since it needs access to the richer data of RemoteReference). Using assignment to make add an alias for create unfortunately confuses mypy, since it loses track of the fact that it's a classmethod and starts treating it like a staticmethod. Replace with a stub wrapper instead. | ||||
* | Use the Git class type definition within Repo classmethods | Michael Mulich | 2021-08-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the GitCommandWrapperType definition to be used within the Repo classmethods. This change follows the intended purpose as stated in the code, "Subclasses may easily bring in their own custom types by placing a constructor or type here." The usecase that prompted this change has to do with `GIT_SSH_COMMAND`. The goal is to setup a custom `Git` class with knowledge of the value, something like as follows ```python from git import Git as BaseGit, Repo as BaseRepo class Git(BaseGit): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # For example, assign the SSH command using the current flask # app's configured setting. self.update_environment(GIT_SSH_COMMAND=current_app.config['GIT_SSH_COMMAND']) class Repo(BaseRepo): GitCommandWrapperType = _Git ``` With this change, the above example will allow the developer to use `Repo.clone_from(...)` with the indended outcome. Otherwise the developer will have two differing result when using `Repo(...)` vs `Repo.clone_from(...)`. | ||||
* | Improve type of repo.currently_rebasing_on() | Yobmod | 2021-08-02 | 1 | -2/+2 |
| | |||||
* | Improve type of repo.blame_incremental() | Yobmod | 2021-08-02 | 1 | -9/+9 |
| | |||||
* | Choose TypedDict! | Yobmod | 2021-08-02 | 1 | -37/+32 |
| | |||||
* | Test Dataclass in repo.base.blame() 6 | Yobmod | 2021-08-02 | 1 | -6/+5 |
| | |||||
* | Test Dataclass in repo.base.blame() 5 | Yobmod | 2021-08-02 | 1 | -30/+37 |
| | |||||
* | Test Dataclass in repo.base.blame() 4 | Yobmod | 2021-08-02 | 1 | -11/+10 |
| | |||||
* | Test TypedDict in repo.base.blame() 1 | Yobmod | 2021-08-02 | 1 | -13/+14 |
| | |||||
* | Test TypedDict in repo.base.blame() 2 | Yobmod | 2021-08-02 | 1 | -44/+36 |
| | |||||
* | Test Dataclass in repo.base.blame() 3 | Yobmod | 2021-08-02 | 1 | -13/+14 |
| | |||||
* | Test Dataclass in repo.base.blame() 2 | Yobmod | 2021-08-02 | 1 | -2/+2 |
| | |||||
* | Test Dataclass in repo.base.blame() | Yobmod | 2021-08-02 | 1 | -37/+66 |
| | |||||
* | Test trailing comma in args (>py3.6?) | Yobmod | 2021-08-02 | 1 | -3/+5 |
| | |||||
* | Test new union syntax (Pep604) | Yobmod | 2021-08-02 | 1 | -1/+1 |
| | |||||
* | Add __future__.annotations to repo/base.py | Yobmod | 2021-08-02 | 1 | -4/+5 |
| | |||||
* | increase mypy strictness (warn unused ignored and warn unreachable) | Yobmod | 2021-08-02 | 1 | -1/+0 |
| | |||||
* | replace more TBDs wiht runtime types | Yobmod | 2021-07-31 | 1 | -4/+5 |
| | |||||
* | Add type to repo.base._to_full_tag_path | Yobmod | 2021-07-31 | 1 | -6/+7 |
| | |||||
* | Fix more missing types in Symbolic.py, cos GuthubActions pytest stuck | Yobmod | 2021-07-28 | 1 | -1/+2 |
| | |||||
* | Fix some SymbolicReference types | Yobmod | 2021-07-28 | 1 | -1/+1 |
| | |||||
* | Fix SymbolicReference reference typing | Yobmod | 2021-07-28 | 1 | -3/+2 |
| | |||||
* | Added support of spaces for clone multi_options | Igor Lakhtenkov | 2021-07-27 | 1 | -1/+2 |
| | |||||
* | Rmv with_metaclass shim, make section constraint generic wrt its ↵ | Yobmod | 2021-07-24 | 1 | -2/+4 |
| | | | | configparser type | ||||
* | Replace all Typeguard with cast, revert update to typing-extensions==3.10.0 | Yobmod | 2021-07-24 | 1 | -2/+3 |
| | |||||
* | Change remaining type comments to py3.6+ types | Yobmod | 2021-07-19 | 1 | -10/+10 |
| | |||||
* | Make types in refs compatible with repo | Yobmod | 2021-07-19 | 1 | -3/+4 |
| | |||||
* | Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and ↵ | Yobmod | 2021-07-08 | 1 | -4/+4 |
| | | | | fix errors | ||||
* | Fix for mrepo2 | Yobmod | 2021-07-06 | 1 | -1/+1 |
| | |||||
* | Add types to submodule.update() | Yobmod | 2021-07-06 | 1 | -3/+6 |
| | |||||
* | Improve BlameEntry.commit typing | Yobmod | 2021-07-05 | 1 | -4/+4 |
| | |||||
* | Improve typing of config_levels, add assert_never() | Yobmod | 2021-07-05 | 1 | -9/+10 |
| | |||||
* | Add missed types to Commit, uncomment to_native_path_linux() | Yobmod | 2021-07-01 | 1 | -1/+1 |
| | |||||
* | Type Traversable.traverse() better, start types of submodule | Yobmod | 2021-06-30 | 1 | -8/+8 |
| | |||||
* | Make IterableList generic and update throughout | Yobmod | 2021-06-24 | 1 | -6/+6 |
| | |||||
* | Add types to tree.Tree | Yobmod | 2021-06-24 | 1 | -1/+2 |
| | |||||
* | Update typing-extensions version in requirements.txt | Yobmod | 2021-06-23 | 1 | -2/+20 |
| | |||||
* | Removes PathLike type requirement for full_tag creation | Robert Westman | 2021-06-03 | 1 | -1/+1 |
| | |||||
* | Fix flake8 | Sebastian Thiel | 2021-06-03 | 1 | -1/+0 |
| | |||||
* | Fixes resolving of tag parameter for repo.tag | Robert Westman | 2021-06-03 | 1 | -1/+12 |
| | | | | | | | | I accessed private variables instead of adding getters, because other parts of the code do the same and I didn't know if there was a reason for it. E.g.: remote.py line 409: (...) RemoteReference._common_path_default (...) | ||||
* | add types to index.fun.py | Yobmod | 2021-05-17 | 1 | -2/+2 |
| | |||||
* | Add initial types to IndexFile .init() to _to_relative_path() | Yobmod | 2021-05-15 | 1 | -3/+3 |
| | |||||
* | Add types to config.py CONFIG_LEVELS, MetaParserBuilder.__new__() ↵ | yobmod | 2021-05-08 | 1 | -2/+1 |
| | | | | .needs_values() .set_dirty_and_flush_changes() | ||||
* | flake8 fixes | yobmod | 2021-05-08 | 1 | -4/+3 |
| | |||||
* | add initial types to remote.py | yobmod | 2021-05-03 | 1 | -74/+77 |
| | |||||
* | add types to base.py and fun.py | yobmod | 2021-02-28 | 1 | -108/+163 |
| | |||||
* | docs: fix simple typo, repostory -> repository | Tim Gates | 2020-12-25 | 1 | -1/+1 |
| | | | | | | There is a small typo in git/repo/base.py. Should read `repository` rather than `repostory`. | ||||
* | rename sublist to subset | Sagi Shadur | 2020-09-29 | 1 | -1/+1 |
| | |||||
* | Rename get_ignored to ignored and fix the documentation | Sagi Shadur | 2020-09-29 | 1 | -2/+2 |
| | |||||
* | Find paths ignored in .gitignore | Sagi Shadur | 2020-09-29 | 1 | -0/+13 |
| |