summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/pipelines.py
Commit message (Collapse)AuthorAgeFilesLines
* feat(api): support listing pipelines triggered by pipeline schedulesSteve Vermeulen2022-12-111-0/+13
|
* feat: allow filtering pipelines by sourceNick Brown2022-12-101-0/+1
| | | | | | See: https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines Added in GitLab 14.3
* test(pylint): enable pylint "unused-argument" checkJohn L. Villalovos2022-06-261-2/+2
| | | | | | | | | | Enable the pylint "unused-argument" check and resolve issues it found. * Quite a few functions were accepting `**kwargs` but not then passing them on through to the next level. Now pass `**kwargs` to next level. * Other functions had no reason to accept `**kwargs`, so remove it * And a few other fixes.
* refactor: remove no-op id argument in GetWithoutIdMixinNejc Habjan2022-06-251-8/+4
|
* chore: move `RequiredOptional` to the `gitlab.types` moduleJohn L. Villalovos2022-05-311-1/+2
| | | | | | By having `RequiredOptional` in the `gitlab.base` module it makes it difficult with circular imports. Move it to the `gitlab.types` module which has no dependencies on any other gitlab module.
* chore: update type-hints return signature for GetWithoutIdMixin methodsJohn L. Villalovos2022-05-301-6/+4
| | | | | | | Commit f0152dc3cc9a42aa4dc3c0014b4c29381e9b39d6 removed situation where `get()` in a `GetWithoutIdMixin` based class could return `None` Update the type-hints to no longer return `Optional` AKA `None`
* feat(object): add pipeline test report summary supportkinbald2022-03-071-0/+20
|
* fix: use url-encoded ID in all pathsJohn L. Villalovos2022-01-131-4/+4
| | | | | | | | | | | | Make sure all usage of the ID in the URL path is encoded. Normally it isn't an issue as most IDs are integers or strings which don't contain a slash ('/'). But when the ID is a string with a slash character it will break things. Add a test case that shows this fixes wikis issue with subpages which use the slash character. Closes: #1079
* chore: add get() methods for GetWithoutIdMixin based classesjlvillal/get_without_idJohn L. Villalovos2021-12-081-0/+5
| | | | | | | Add the get() methods for the GetWithoutIdMixin based classes. Update the tests/meta/test_ensure_type_hints.py tests to check to ensure that the get methods are defined with the correct return type.
* docs: use annotations for return typesdocs/sphinx-annotationsNejc Habjan2021-12-011-1/+1
|
* docs: only use type annotations for documentationNejc Habjan2021-11-281-1/+1
|
* chore: add type-hints to gitlab/v4/objects/pipelines.pyJohn L. Villalovos2021-11-211-6/+30
|
* refactor: use new-style formatting for named placeholdersNejc Habjan2021-11-081-11/+8
|
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-4/+4
|
* refactor(objects): remove deprecated pipelines() methodNejc Habjan2021-09-081-29/+0
| | | | BREAKING CHANGE: remove deprecated pipelines() methods in favor of pipelines.list()
* chore: convert to using type-annotations for managersJohn L. Villalovos2021-09-081-7/+0
| | | | | | | | | | | | | Convert our manager usage to be done via type annotations. Now to define a manager to be used in a RESTObject subclass can simply do: class ExampleClass(CRUDMixin, RESTObject): my_manager: MyManager Any type-annotation that annotates it to be of type *Manager (with the exception of RESTManager) will cause the manager to be created on the object.
* chore: improve type-hinting for managersJohn L. Villalovos2021-09-071-2/+7
| | | | | | | | | | | | | | | The 'managers' are dynamically created. This unfortunately means that we don't have any type-hints for them and so editors which understand type-hints won't know that they are valid attributes. * Add the type-hints for the managers we define. * Add a unit test that makes sure that the type-hints and the '_managers' attribute are kept in sync with each other. * Add unit test that makes sure specified managers in '_managers' have a name ending in 'Managers' to keep with current convention. * Make RESTObject._managers always present with a default value of None. * Fix a type-issue revealed now that mypy knows what the type is
* feat(api): add MR pipeline manager in favor of pipelines() methodNejc Habjan2021-06-131-0/+41
|
* fix(cli): add missing list filter for jobsNejc Habjan2021-05-291-1/+1
|
* feat(objects): add pipeline test report supportRaphaƫl Monat2021-05-291-0/+14
|
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-2/+1
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* fix(objects): return server data in cancel/retry methodsNejc Habjan2021-05-021-2/+2
|
* fix: add a check to ensure the MRO is correctJohn L. Villalovos2021-04-241-1/+1
| | | | | | | | | | | | | | | Add a check to ensure the MRO (Method Resolution Order) is correct for classes in gitlab.v4.objects when doing type-checking. An example of an incorrect definition: class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin): ^^^^^^^^^^ This should be at the end. Correct way would be: class ProjectPipeline(RefreshMixin, ObjectDeleteMixin, RESTObject): Correctly at the end ^^^^^^^^^^ Also fix classes which have the issue.
* chore: fix F401 errors reported by flake8John L. Villalovos2021-04-181-1/+1
| | | | | | F401: Module imported but unused https://www.flake8rules.com/rules/F401.html
* chore: have _create_attrs & _update_attrs be a namedtupleJohn L. Villalovos2021-04-171-6/+10
| | | | | | Convert _create_attrs and _update_attrs to use a NamedTuple (RequiredOptional) to help with code readability. Update all code to use the NamedTuple.
* chore: remove usage of 'from ... import *'John L. Villalovos2021-02-231-2/+12
| | | | | | | | | | | | | | | | | | In gitlab/v4/objects/*.py remove usage of: * from gitlab.base import * * from gitlab.mixins import * Change them to: * from gitlab.base import CLASS_NAME * from gitlab.mixins import CLASS_NAME Programmatically update code to explicitly import needed classes only. After the change the output of: $ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin' Is empty. Before many messages about unable to determine if it was a valid name.
* refactor(api): explicitly export classes for star importsrefactor/split-objectsNejc Habjan2021-02-071-0/+16
|
* refactor(v4): split objects and managers per API resourceNejc Habjan2021-02-071-0/+174