summaryrefslogtreecommitdiff
path: root/gitlab/config.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: add keep_base_url when getting configuration from fileAntoine Meynard2022-12-031-0/+10
|
* chore: remove broad Exception catching from `config.py`John L. Villalovos2022-08-051-25/+21
| | | | | | Change "except Exception:" catching to more granular exceptions. A step in enabling the "broad-except" check in pylint.
* chore: consolidate license and authorsNejc Habjan2022-08-041-17/+0
|
* chore: make code PEP597 compliantJohn L. Villalovos2022-07-281-1/+1
| | | | | | Use `encoding="utf-8"` in `open()` and open-like functions. https://peps.python.org/pep-0597/
* fix(config): raise error when gitlab id provided but no config section foundNejc Habjan2022-07-221-0/+6
|
* fix(config): raise error when gitlab id provided but no config file foundNejc Habjan2022-07-221-0/+5
|
* chore: enable pylint check "raise-missing-from"John L. Villalovos2022-06-041-2/+4
| | | | Enable the pylint check "raise-missing-from" and fix errors detected.
* test(gitlab): increase unit test coverageNejc Habjan2022-05-291-3/+5
|
* chore: remove old-style classesNejc Habjan2022-01-231-1/+1
|
* feat(cli): allow options from args and environment variablesNejc Habjan2022-01-021-2/+2
| | | | | | | | BREAKING-CHANGE: The gitlab CLI will now accept CLI arguments and environment variables for its global options in addition to configuration file options. This may change behavior for some workflows such as running inside GitLab CI and with certain environment variables configured.
* feat(cli): do not require config file to run CLIfeat/cli-without-config-fileNejc Habjan2021-12-131-60/+94
| | | | | | | | | | | BREAKING CHANGE: A config file is no longer needed to run the CLI. python-gitlab will default to https://gitlab.com with no authentication if there is no config file provided. python-gitlab will now also only look for configuration in the provided PYTHON_GITLAB_CFG path, instead of merging it with user- and system-wide config files. If the environment variable is defined and the file cannot be opened, python-gitlab will now explicitly fail.
* refactor: use f-strings for string formattingNejc Habjan2021-11-051-4/+4
|
* feat: allow global retry_transient_errors setupKarun Japhet2021-08-291-0/+14
| | | | | | `retry_transient_errors` can now be set through the Gitlab instance and global configuration Documentation for API usage has been updated and missing tests have been added.
* chore: fix import ordering using isortJohn L. Villalovos2021-05-251-2/+2
| | | | | | Fix the import ordering using isort. https://pycqa.github.io/isort/
* chore: mypy: Disallow untyped definitionsJohn L. Villalovos2021-04-271-1/+1
| | | | | | | | | Be more strict and don't allow untyped definitions on the files we check. Also this adds type-hints for two of the decorators so that now functions/methods decorated by them will have their types be revealed correctly.
* chore(config): allow simple commands without external scriptKay-Uwe (Kiwi) Lorenz2021-04-181-6/+27
|
* chore: make lint happyKay-Uwe (Kiwi) Lorenz2021-03-071-1/+2
|
* fix: handling config value in _get_values_from_helperKay-Uwe (Kiwi) Lorenz2021-03-071-2/+4
|
* fix: let the homedir be expanded in path of helperKay-Uwe (Kiwi) Lorenz2021-03-071-1/+2
|
* chore: make lint happyKay-Uwe (Kiwi) Lorenz2021-03-071-6/+4
|
* fix: make secret helper more user friendlyKay-Uwe (Kiwi) Lorenz2021-03-071-9/+16
|
* feat: option to add a helper to lookup tokenKay-Uwe (Kiwi) Lorenz2021-03-061-0/+11
|
* chore: add type-hints to gitlab/config.pyJohn L. Villalovos2021-02-251-4/+7
|
* feat(api,cli): make user agent configurableNejc Habjan2021-01-311-0/+12
|
* fix(config): fix duplicate codefix/duplicate-codeMax Wittig2020-05-161-8/+0
| | | | Fixes #1094
* feat: allow an environment variable to specify config locationJeremy Cline2020-04-161-1/+11
| | | | | | | | It can be useful (especially in scripts) to specify a configuration location via an environment variable. If the "PYTHON_GITLAB_CFG" environment variable is defined, treat its value as the path to a configuration file and include it in the set of default configuration locations.
* chore: use raise..from for chained exceptions (#939)fix/raise-fromNejc Habjan2020-03-301-4/+4
|
* feat: add global order_by option to ease paginationfeat/keyset-paginationMax Wittig2020-01-261-0/+6
|
* feat: support keyset pagination globallyMax Wittig2020-01-261-0/+6
|
* refactor: remove six dependencyMax Wittig2019-12-181-2/+1
|
* refactor: remove unused code, simplify string formatgodaji2019-10-061-1/+1
|
* feat: add support for job tokenMathieu Parent2019-09-061-0/+6
| | | | See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-39/+30
|
* fix(cli): exit on config parse error, instead of crashingMax Wittig2018-11-041-0/+17
| | | | * Exit and hint user about possible errors * test: adjust test cases to config missing error
* add per_page config optionCyril Jouve2018-05-221-0/+10
|
* Drop API v3 supportGauvain Pocentek2018-05-191-1/+1
| | | | Drop the code, the tests, and update the documentation.
* Default to API v4Gauvain Pocentek2018-02-051-1/+1
|
* config: support api_version in the global sectionGauvain Pocentek2018-02-041-0/+4
| | | | Fixes #421
* Add support for oauth and anonymous auth in config/CLIGauvain Pocentek2017-11-101-1/+23
|
* Support SSL verification via internal CA bundleMaura Hausman2017-08-041-0/+17
| | | | | - Also updates documentation - See issues #204 and #270
* update copyright yearsGauvain Pocentek2017-05-241-1/+1
|
* Initial, non-functional v4 supportGauvain Pocentek2017-05-231-0/+9
|
* Added support for HTTP basic authenticationPeter Mosmans2016-05-301-0/+10
|
* unit tests for config parserGauvain Pocentek2016-01-091-4/+1
|
* Provide a Gitlab.from_config methodGauvain Pocentek2015-08-211-0/+83
It provides the Gitlab object creation from the ~/.python-gitlab.cfg, just like the CLI does.