| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
chore(cli): rename "object" to "GitLab resource"
|
| |/
|
|
|
| |
Make the parser name more user friendly by renaming from generic
"object" to "GitLab resource"
|
| |\
| |
| | |
test: add more tests for RequiredOptional
|
| | | |
|
| |\ \
| | |
| | | |
chore: use multiple processors when running PyLint
|
| |/ /
| |
| |
| |
| |
| | |
Use multiple processors when running PyLint. On my system it took
about 10.3 seconds to run PyLint before this change. After this change
it takes about 5.8 seconds to run PyLint.
|
| |\ \
| | |
| | | |
chore: enable more pylint checks
|
| | | |
| | |
| | |
| | |
| | | |
Enable the pylint check "redefined-outer-name" and fix the errors
detected.
|
| | | |
| | |
| | |
| | | |
Enable the pylint check "no-self-use" and fix the errors detected.
|
| | | |
| | |
| | |
| | | |
Enable the pylint check "no-else-return" and fix the errors detected.
|
| | | |
| | |
| | |
| | |
| | | |
Enable the pylint check: "attribute-defined-outside-init" and fix
errors detected.
|
| | | |
| | |
| | |
| | | |
Enable the pylint check "raise-missing-from" and fix errors detected.
|
| | | |
| | |
| | |
| | |
| | | |
Enabled the pylint checks that don't require any code changes.
Previously these checks were disabled.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Enable the pylint checks:
* unnecessary-pass
* unspecified-encoding
Update code to resolve errors found
|
| |\ \ \
| |/ /
|/| | |
chore: rename `whaction` and `action` to `resource_action` in CLI
|
| |/ /
| |
| |
| |
| | |
Rename the variables `whaction` and `action` to `resource_action` to
improve code-readability.
|
| |\ \
| | |
| | | |
test: move back to using latest Python 3.11 version
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
chore: rename `what` to `gitlab_resource`
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Naming a variable `what` makes it difficult to understand what it is
used for.
Rename it to `gitlab_resource` as that is what is being stored.
The Gitlab documentation talks about them being resources:
https://docs.gitlab.com/ee/api/api_resources.html
This will improve code readability.
|
| |\ \ \ \
| |/ / /
| | | | |
chore: rename `__call__()` to `run()` in GitlabCLI
|
| | |/ /
| | |
| | |
| | | |
Less confusing to have it be a normal method.
|
| |\ \ \
| |/ /
|/| | |
chore: enable 'consider-using-sys-exit' pylint check
|
| |/ /
| |
| |
| |
| | |
Enable the 'consider-using-sys-exit' pylint check and fix errors
raised.
|
| | | |
|
| |\ \
| |/
|/| |
chore: require f-strings
|
| |/
|
|
|
| |
We previously converted all string formatting to use f-strings. Enable
pylint check to enforce this.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Since ac1c619cae6481833f5df91862624bf0380fef67 we delete parent arg keys
from the args dict so this has been trying to access the wrong attribute.
|
| |\
| |
| | |
Clean-up the `validate_attrs` method/function
|
| | |
| |
| |
| |
| |
| | |
Move the `validate_attrs` function to be inside the `RequiredOptional`
class. It makes sense for it to be part of the class as it is working
on data related to the class.
|
| |/
|
|
| |
Replace usage with f-string
|
| |\
| |
| | |
chore: have `EncodedId` creation always return `EncodedId`
|
| |/
|
|
|
|
|
|
| |
There is no reason to return an `int` as we can always return a `str`
version of the `int`
Change `EncodedId` to always return an `EncodedId`. This removes the
need to have `mypy` ignore the error raised.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix board lists (#2037)
add exclusive tuple to RequiredOptional data class to support for
mutually exclusive attributes
consolidate _check_missing_create_attrs and _check_missing_update_attrs
from mixins.py into _validate_attrs in utils.py
change _create_attrs in board list manager classes from
required=('label_ld',) to
exclusive=('label_id','asignee_id','milestone_id')
closes https://github.com/python-gitlab/python-gitlab/issues/1897
|
| |\
| |
| | |
chore: move `RequiredOptional` to the `gitlab.types` module
|
| |/
|
|
|
|
| |
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 methods
|
| |/
|
|
|
|
|
| |
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`
|
| |\
| |
| | |
chore: correct ModuleNotFoundError() arguments
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously in commit 233b79ed442aac66faf9eb4b0087ea126d6dffc5 I had
used the `name` argument for `ModuleNotFoundError()`. This basically
is the equivalent of not passing any message to
`ModuleNotFoundError()`. So when the exception was raised it wasn't
very helpful.
Correct that and add a unit-test that shows we get the message we
expect.
|
| |\ \
| | |
| | | |
chore(deps): update typing dependencies
|
| | |/ |
|
| |\ \
| |/
|/| |
chore(deps): update dependency commitizen to v2.27.1
|
| |/ |
|
| | |
|
| | |
|