| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follow the Python documentation guidelines for "Configuring Logging
for a Library" [1]
Which is basically adding these two lines:
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
Setup a very basic usage of logging in `gitlab/client.py`
By using the NullHandler it means that by default any log messages
output will not be displayed. It is up to the client application to do
a `logging.basicConfig()` call to get log messages to display.
[1] https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
Related: #2080
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This will also fix other use cases where an integer is passed in to
MultipartEncoder.
Added unit tests to show it works.
Closes: #2506
|
| |
|
|
|
|
|
|
| |
I found the tuple of three values confusing. So instead use a
dataclass to return the three values. It is still confusing but a
little bit less so.
Also add some unit tests
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
* chore(deps): update all non-major dependencies
* chore(fixtures): downgrade GitLab for now
* chore(deps): ungroup typing deps, group gitlab instead
* chore(deps): downgrade argcomplete for now
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nejc Habjan <nejc.habjan@siemens.com>
|
| |
|
|
|
|
|
| |
* fix(cli): Add ability to escape at-prefixed parameter (#2511)
---------
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
|
| |
|
| |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
| |
|
| |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
| |
|
| |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
| | |
|
| |
|
|
|
|
|
|
| |
The purpose of this change is to track API changes described in
https://github.com/python-gitlab/python-gitlab/blob/main/docs/api-levels.rst,
for example, for package versioning and breaking change announcements
in case of protocol changes.
This is MVP implementation to be used by #2435.
|
| |
|
|
|
|
|
|
|
|
| |
docs: fix update badge behaviour
Earlier:
badge.image_link = new_link
Now:
badge.image_url = new_image_url
badge.link_url = new_link_url
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Update the `requirements-*` files.
In order to update mypy==1.0.0 we need to also update
responses==0.22.0
Fix one issue found by `mypy`
Leaving updates for `precommit` to be done in a separate commit by
someone.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Update the dependency versions:
black: 23.1.0
commitizen: 2.40.0
They needed to be updated together as just updating `black` caused a
dependency conflict.
Updated files by running `black` and committing the changes.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
For users who use `tox` having `pre-commit` as part of the default
environment list is redundant as it will run the same tests again that
are being run in other environments. For example: black, flake8,
pylint, and more.
|
| |
|
|
|
| |
In order to support some new API calls we need to support the HTTP `PATCH` method.
Closes: #2469
|
| |
|
|
|
|
|
|
|
|
| |
Add a unit test for Python 3.12. This will use the latest version of
Python 3.12 that is available from
https://github.com/actions/python-versions/
At this time it is 3.12.0-alpha.4 but will move forward over time
until the final 3.12 release and updates. So 3.12.0, 3.12.1, ... will
be matched.
|
| |
|
|
|
|
|
|
|
|
| |
For the CLI: add `allow_force_push` as an optional argument for
creating a protected branch.
API reference:
https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches
Closes: #2466
|
| |\
| |
| | |
docs: fix typo in issue docs
|
| | |\
| |/
|/| |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
If a caller calls a `list()` method with both `iterator=True` (or
`as_list=False`) and `page=X` then emit a `UserWarning` as the options
are mutually exclusive.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
iterator=True/as_list=False are used
This fix a regression introduced on commit
https://github.com/python-gitlab/python-gitlab/commit/1339d645ce58a2e1198b898b9549ba5917b1ff12
If page is used, then get_next should be false.
This was found on the mesa ci project, after upgrading the python-gitlab
version, the script that monitors the ci was getting killed by consuming
too much memory.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
tox > 4 no longer will re-use the tox directory :( What this means is
that with the previous config if you ran:
$ tox -e mypy; tox -e isort; tox -e mypy
It would recreate the tox environment each time :(
By removing the `envdir` values it will have the tox environments in
separate directories and not recreate them.
The have an FAQ entry about this:
https://tox.wiki/en/latest/upgrading.html#re-use-of-environments
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Fixes: #2325
|
| | | |
|