Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chore: deduplicate type annotations in docschore/sphinx-annotations | Nejc Habjan | 2021-11-24 | 32 | -640/+638 |
| | |||||
* | Merge pull request #1695 from python-gitlab/jlvillal/mypy_epics | Nejc Habjan | 2021-11-23 | 13 | -90/+353 |
|\ | | | | | chore: add type-hints to remaining gitlab/v4/objects/*.py files | ||||
| * | chore: add type-hints to gitlab/v4/objects/files.pyjlvillal/mypy_epics | John L. Villalovos | 2021-11-21 | 2 | -13/+58 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/labels.py | John L. Villalovos | 2021-11-21 | 2 | -7/+37 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/sidekiq.py | John L. Villalovos | 2021-11-21 | 2 | -5/+12 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/services.py | John L. Villalovos | 2021-11-21 | 2 | -6/+15 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/repositories.py | John L. Villalovos | 2021-11-21 | 2 | -14/+48 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/pipelines.py | John L. Villalovos | 2021-11-21 | 2 | -7/+30 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/milestones.py | John L. Villalovos | 2021-11-21 | 2 | -5/+22 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/jobs.py | John L. Villalovos | 2021-11-21 | 2 | -15/+55 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/issues.py | John L. Villalovos | 2021-11-21 | 2 | -7/+33 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/geo_nodes.py | John L. Villalovos | 2021-11-21 | 2 | -8/+23 |
| | | |||||
| * | chore: add type-hints to gitlab/v4/objects/epics.py | John L. Villalovos | 2021-11-21 | 2 | -3/+16 |
| | | |||||
| * | chore: fix issue with adding type-hints to 'manager' attribute | John L. Villalovos | 2021-11-21 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | When attempting to add type-hints to the the 'manager' attribute into a RESTObject derived class it would break things. This was because our auto-manager creation code would automatically add the specified annotated manager to the 'manager' attribute. This breaks things. Now check in our auto-manager creation if our attribute is called 'manager'. If so we ignore it. | ||||
* | | Merge pull request #1705 from python-gitlab/jlvillal/drop_py_36 | Nejc Habjan | 2021-11-23 | 4 | -6/+3 |
|\ \ | | | | | | | feat: remove support for Python 3.6, require 3.7 or higher | ||||
| * | | feat: remove support for Python 3.6, require 3.7 or higher | John L. Villalovos | 2021-11-23 | 4 | -6/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.6 is End-of-Life (EOL) as of 2021-12 as stated in https://www.python.org/dev/peps/pep-0494/ By dropping support for Python 3.6 and requiring Python 3.7 or higher it allows python-gitlab to take advantage of new features in Python 3.7, which are documented at: https://docs.python.org/3/whatsnew/3.7.html Some of these new features that may be useful to python-gitlab are: * PEP 563, postponed evaluation of type annotations. * dataclasses: PEP 557 – Data Classes * importlib.resources * PEP 562, customization of access to module attributes. * PEP 560, core support for typing module and generic types. * PEP 565, improved DeprecationWarning handling BREAKING CHANGE: As of python-gitlab 3.0.0, Python 3.6 is no longer supported. Python 3.7 or higher is required. | ||||
* | | | chore(deps): update dependency types-setuptools to v57.4.3 | Renovate Bot | 2021-11-23 | 2 | -2/+2 |
| | | | |||||
* | | | chore(deps): update dependency black to v21 | Renovate Bot | 2021-11-22 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #1693 from python-gitlab/jlvillay/mypy_test_meta | Nejc Habjan | 2021-11-23 | 4 | -6/+8 |
|\ \ \ | | | | | | | | | chore: enable mypy for tests/meta/* | ||||
| * | | | chore: enable mypy for tests/meta/*jlvillay/mypy_test_meta | John L. Villalovos | 2021-11-16 | 4 | -6/+8 |
| | | | | |||||
* | | | | chore: have renovate upgrade black version (#1700) | John Villalovos | 2021-11-23 | 2 | -2/+11 |
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | renovate is not upgrading the `black` package. There is an open issue[1] about this. Also change .commitlintrc.json to allow 200 character footer lines in the commit message. Otherwise would be forced to split the URL across multiple lines making it un-clickable :( Use suggested work-arounds from: https://github.com/renovatebot/renovate/issues/7167#issuecomment-904106838 https://github.com/scop/bash-completion/blob/e7497f6ee8232065ec11450a52a1f244f345e2c6/renovate.json#L34-L38 [1] https://github.com/renovatebot/renovate/issues/7167 | ||||
* | | | Merge pull request #1701 from python-gitlab/jlvillal/func_test | Nejc Habjan | 2021-11-22 | 1 | -0/+4 |
|\ \ \ | |_|/ |/| | | chore: correct test_groups.py test | ||||
| * | | chore: correct test_groups.py testjlvillal/func_test | John L. Villalovos | 2021-11-19 | 1 | -0/+4 |
|/ / | | | | | | | | | | | | | | | | | The test was checking twice if the same group3 was not in the returned list. Should have been checking for group3 and group4. Also added a test that only skipped one group and checked that the group was not in the returned list and a non-skipped group was in the list. | ||||
* | | Merge pull request #1696 from ↵ | Nejc Habjan | 2021-11-17 | 2 | -12/+35 |
|\ \ | |/ |/| | | | | | python-gitlab/jlvillal/mypy_merge_request_approvals chore: add type-hints to gitlab/v4/objects/merge_request_approvals.py | ||||
| * | chore: add type-hints to gitlab/v4/objects/merge_request_approvals.pyjlvillal/mypy_merge_request_approvals | John L. Villalovos | 2021-11-16 | 2 | -12/+35 |
|/ | |||||
* | Merge pull request #1692 from python-gitlab/jlvillal/mypy_setup | Nejc Habjan | 2021-11-16 | 1 | -1/+0 |
|\ | | | | | chore: check setup.py with mypy | ||||
| * | chore: check setup.py with mypy | John L. Villalovos | 2021-11-16 | 1 | -1/+0 |
|/ | | | | | | | | Prior commit 06184daafd5010ba40bb39a0768540b7e98bd171 fixed the type-hints for setup.py. But missed removing 'setup' from the exclude list in pyproject.toml for mypy checks. Remove 'setup' from the exclude list in pyproject.toml from mypy checks. | ||||
* | Merge pull request #1681 from python-gitlab/jlvillal/mypy_ensure_type_hints | Nejc Habjan | 2021-11-16 | 25 | -6/+437 |
|\ | | | | | Ensure get() methods have correct type-hints | ||||
| * | chore: ensure get() methods have correct type-hintsjlvillal/mypy_ensure_type_hints | John L. Villalovos | 2021-11-15 | 21 | -4/+434 |
| | | | | | | | | | | | | | | | | Fix classes which don't have correct 'get()' methods for classes derived from GetMixin. Add a unit test which verifies that classes have the correct return type in their 'get()' method. | ||||
| * | chore: create a 'tests/meta/' directory and put test_mro.py in it | John L. Villalovos | 2021-11-15 | 4 | -2/+3 |
| | | | | | | | | | | The 'test_mro.py' file is not really a unit test but more of a 'meta' check on the validity of the code base. | ||||
* | | Merge pull request #1683 from python-gitlab/jlvillal/mypy_setup | Nejc Habjan | 2021-11-15 | 3 | -2/+7 |
|\ \ | |/ | | | chore: add type-hints to setup.py and check with mypy | ||||
| * | chore: add type-hints to setup.py and check with mypyjlvillal/mypy_setup | John L. Villalovos | 2021-11-14 | 3 | -2/+7 |
|/ | |||||
* | Merge pull request #1691 from python-gitlab/jlvillal/mypy_snippets | Nejc Habjan | 2021-11-14 | 2 | -5/+32 |
|\ | | | | | chore: add type-hints to gitlab/v4/objects/snippets.py | ||||
| * | chore: add type-hints to gitlab/v4/objects/snippets.pyjlvillal/mypy_snippets | John L. Villalovos | 2021-11-14 | 2 | -5/+32 |
|/ | |||||
* | chore(deps): update dependency types-pyyaml to v6.0.1 | Renovate Bot | 2021-11-12 | 2 | -2/+2 |
| | |||||
* | chore(deps): update dependency sphinx to v4.3.0 | Renovate Bot | 2021-11-10 | 1 | -1/+1 |
| | |||||
* | chore(deps): update dependency types-requests to v2.26.0 | Renovate Bot | 2021-11-09 | 2 | -2/+2 |
| | |||||
* | chore(deps): update dependency isort to v5.10.1 | Renovate Bot | 2021-11-09 | 1 | -1/+1 |
| | |||||
* | chore(deps): update dependency types-requests to v2.25.12 | Renovate Bot | 2021-11-08 | 2 | -2/+2 |
| | |||||
* | refactor: use new-style formatting for named placeholders | Nejc Habjan | 2021-11-08 | 51 | -164/+148 |
| | |||||
* | Merge pull request #1680 from python-gitlab/jlvillal/mypy_small_files_1 | Nejc Habjan | 2021-11-08 | 22 | -58/+232 |
|\ | | | | | chore: enforce type-hints on most files in gitlab/v4/objects/ | ||||
| * | chore: enforce type-hints on most files in gitlab/v4/objects/jlvillal/mypy_small_files_1 | John L. Villalovos | 2021-11-08 | 22 | -58/+232 |
|/ | | | | | | | * Add type-hints to some of the files in gitlab/v4/objects/ * Fix issues detected when adding type-hints * Changed mypy exclusion to explicitly list the 13 files that have not yet had type-hints added. | ||||
* | Merge pull request #1678 from python-gitlab/jlvillal/mypy_commits | Nejc Habjan | 2021-11-08 | 2 | -9/+25 |
|\ | | | | | chore: add type hints for gitlab/v4/objects/commits.py | ||||
| * | chore: add type hints for gitlab/v4/objects/commits.pyjlvillal/mypy_commits | John L. Villalovos | 2021-11-07 | 2 | -9/+25 |
|/ | |||||
* | Merge pull request #1677 from python-gitlab/chore/ci-lock-threads | Nejc Habjan | 2021-11-08 | 1 | -0/+20 |
|\ | | | | | chore(ci): add workflow to lock old issues | ||||
| * | chore(ci): add workflow to lock old issues | Nejc Habjan | 2021-11-07 | 1 | -0/+20 |
|/ | |||||
* | Merge pull request #1674 from python-gitlab/jlvillal/mypy_small_files_1 | Nejc Habjan | 2021-11-07 | 7 | -4/+51 |
|\ | | | | | chore: add type-hints to multiple files in gitlab/v4/objects/ | ||||
| * | chore: add type-hints to multiple files in gitlab/v4/objects/ | John L. Villalovos | 2021-11-07 | 7 | -4/+51 |
|/ | | | | | | | | | | | | | | | | | | | | Add and/or check type-hints for the following files gitlab.v4.objects.access_requests gitlab.v4.objects.applications gitlab.v4.objects.broadcast_messages gitlab.v4.objects.deployments gitlab.v4.objects.keys gitlab.v4.objects.merge_trains gitlab.v4.objects.namespaces gitlab.v4.objects.pages gitlab.v4.objects.personal_access_tokens gitlab.v4.objects.project_access_tokens gitlab.v4.objects.tags gitlab.v4.objects.templates gitlab.v4.objects.triggers Add a 'get' method with the correct type for Managers derived from GetMixin. | ||||
* | Merge pull request #1668 from python-gitlab/jlvillal/mypy_groups | Nejc Habjan | 2021-11-07 | 2 | -12/+46 |
|\ | | | | | chore: add type-hints to gitlab/v4/objects/groups.py | ||||
| * | chore: add type-hints to gitlab/v4/objects/groups.py | John L. Villalovos | 2021-11-07 | 2 | -12/+46 |
|/ | | | | | | | * Add type-hints to gitlab/v4/objects/groups.py * Have share() function update object attributes. * Add 'get()' method so that type-checkers will understand that getting a group is of type Group. |