summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chore: fix unit test if config file exists locallyjlvillal/unit_test_configJohn L. Villalovos2021-12-191-2/+4
| | | | Closes #1764
* Merge pull request #1757 from python-gitlab/jlvillal/gitignoreNejc Habjan2021-12-191-0/+1
|\ | | | | chore: add .env as a file that search tools should not ignore
| * chore: add .env as a file that search tools should not ignorejlvillal/gitignoreJohn L. Villalovos2021-12-171-0/+1
| | | | | | | | | | | | The `.env` file was not set as a file that should not be ignored by search tools. We want to have the search tools search any `.env` files.
* | chore(deps): update dependency sphinx to v4.3.2Renovate Bot2021-12-191-1/+1
|/
* chore(deps): update dependency types-requests to v2.26.2Renovate Bot2021-12-172-2/+2
|
* Merge pull request #1746 from python-gitlab/jlvillal/squash_optionNejc Habjan2021-12-142-0/+3
|\ | | | | feat: add support for `squash_option` in Projects
| * feat: add support for `squash_option` in Projectsjlvillal/squash_optionJohn L. Villalovos2021-12-132-0/+3
|/ | | | | | | There is an optional `squash_option` parameter which can be used when creating Projects and UserProjects. Closes #1744
* Merge pull request #1743 from python-gitlab/feat/cli-without-config-fileNejc Habjan2021-12-136-116/+234
|\ | | | | feat(cli): do not require config file to run CLI
| * feat(cli): do not require config file to run CLIfeat/cli-without-config-fileNejc Habjan2021-12-136-116/+234
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #1742 from python-gitlab/jlvillal/py311_alphaNejc Habjan2021-12-131-0/+2
|\ \ | |/ |/| chore: add Python 3.11 testing
| * chore: add Python 3.11 testingJohn L. Villalovos2021-12-121-0/+2
|/ | | | | | | | | | Add a unit test for Python 3.11. This will use the latest version of Python 3.11 that is available from https://github.com/actions/python-versions/ At this time it is 3.11.0-alpha.2 but will move forward over time until the final 3.11 release and updates. So 3.11.0, 3.11.1, ... will be matched.
* test(api): fix current user mail count in newer gitlabNejc Habjan2021-12-111-2/+2
|
* chore(api): temporarily remove topic delete endpointNejc Habjan2021-12-115-33/+3
| | | | It is not yet available upstream.
* chore: fix renovate setup for gitlab docker imageNejc Habjan2021-12-111-1/+1
|
* feat(api): add support for Topics APINejc Habjan2021-12-119-1/+222
|
* Merge pull request #1710 from python-gitlab/jlvillal/get_without_idNejc Habjan2021-12-1110-28/+169
|\ | | | | chore: add get() methods for GetWithoutIdMixin based classes
| * chore: add get() methods for GetWithoutIdMixin based classesjlvillal/get_without_idJohn L. Villalovos2021-12-0810-28/+169
| | | | | | | | | | | | | | 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.
* | Merge pull request #1733 from simonisateur/fix-package-file-deleteNejc Habjan2021-12-103-3/+36
|\ \ | |/ |/| feat: package file delete on package file object
| * feat: add delete on package_file objectSimon Hébert-Deschamps2021-12-093-3/+36
|/
* Merge pull request #1736 from python-gitlab/jlvillal/workflowNejc Habjan2021-12-084-0/+24
|\ | | | | chore: github workflow: cancel prior running jobs on new push
| * chore: github workflow: cancel prior running jobs on new pushJohn L. Villalovos2021-12-074-0/+24
|/ | | | | If new new push is done to a pull-request, then cancel any already running github workflow jobs in order to conserve resources.
* Merge pull request #1726 from python-gitlab/jlvillal/windowsNejc Habjan2021-12-082-13/+23
|\ | | | | chore: add running unit tests on windows/macos
| * chore: add running unit tests on windows/macosJohn L. Villalovos2021-12-072-13/+23
| | | | | | | | | | Add running the unit tests on windows-latest and macos-latest with Python 3.10.
* | Merge pull request #1738 from python-gitlab/jlvillal/pylint_fixesNejc Habjan2021-12-082-29/+20
|\ \ | |/ |/| chore: fix pylint error "expression-not-assigned"
| * chore: fix pylint error "expression-not-assigned"John L. Villalovos2021-12-072-29/+20
|/ | | | | | | | Fix pylint error "expression-not-assigned" and remove check from the disabled list. And I personally think it is much more readable now and is less lines of code.
* Merge pull request #1729 from python-gitlab/jlvillal/pylintNejc Habjan2021-12-088-21/+130
|\ | | | | chore: add initial pylint check
| * chore: set pre-commit mypy args to empty listJohn L. Villalovos2021-12-071-0/+1
| | | | | | | | | | | | | | https://github.com/pre-commit/mirrors-mypy/blob/master/.pre-commit-hooks.yaml Sets some default args which seem to be interfering with things. Plus we set all of our args in the `pyproject.toml` file.
| * chore: run pre-commit on changes to the config fileJohn L. Villalovos2021-12-071-0/+32
| | | | | | | | | | If .pre-commit-config.yaml or .github/workflows/pre_commit.yml are updated then run pre-commit.
| * chore: add initial pylint checkJohn L. Villalovos2021-12-077-21/+97
|/ | | | | | Initial pylint check is added. A LONG list of disabled checks is also added. In the future we should work through the list and resolve the errors or disable them on a more granular level.
* Merge pull request #1727 from python-gitlab/jlvillal/mypy_strict_two_stepsNejc Habjan2021-12-072-2/+18
|\ | | | | Enable more strict mypy checking
| * chore: enable 'warn_redundant_casts' for mypyjlvillal/mypy_strict_two_stepsJohn L. Villalovos2021-12-052-2/+2
| | | | | | | | Enable 'warn_redundant_casts'for mypy and resolve one issue.
| * chore: enable subset of the 'mypy --strict' options that workJohn L. Villalovos2021-12-051-1/+17
|/ | | | | Enable the subset of the 'mypy --strict' options that work with no changes to the code.
* chore(deps): update dependency black to v21.12b0Renovate Bot2021-12-051-1/+1
|
* Merge pull request #1709 from python-gitlab/docs/sphinx-annotationsNejc Habjan2021-12-0133-387/+382
|\ | | | | docs: only use type annotations for documentation
| * docs: use annotations for return typesdocs/sphinx-annotationsNejc Habjan2021-12-0126-101/+99
| |
| * chore(docs): link to main, not masterNejc Habjan2021-11-281-1/+1
| |
| * chore(docs): use builtin autodoc hintsNejc Habjan2021-11-282-2/+2
| |
| * docs: only use type annotations for documentationNejc Habjan2021-11-2826-287/+282
| |
| * chore(docs): load autodoc-typehints moduleNejc Habjan2021-11-282-0/+2
| |
* | Merge pull request #1702 from python-gitlab/jlvillal/attribute_helpNejc Habjan2021-12-014-5/+71
|\ \ | | | | | | chore: attempt to be more informative for missing attributes
| * | chore: attempt to be more informative for missing attributesjlvillal/attribute_helpJohn L. Villalovos2021-11-304-5/+71
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A commonly reported issue from users on Gitter is that they get an AttributeError for an attribute that should be present. This is often caused due to the fact that they used the `list()` method to retrieve the object and objects retrieved this way often only have a subset of the full data. Add more details in the AttributeError message that explains the situation to users. This will hopefully allow them to resolve the issue. Update the FAQ in the docs to add a section discussing the issue. Closes #1138
* | Merge pull request #1694 from python-gitlab/jlvillal/const_explicitNejc Habjan2021-12-0114-73/+140
|\ \ | |/ |/| refactor: explicitly import gitlab.const values into top-level namespace
| * docs: update docs to use gitlab.const for constantsjlvillal/const_explicitJohn L. Villalovos2021-11-307-50/+50
| | | | | | | | Update the docs to use gitlab.const to access constants.
| * chore: use constants from gitlab.const moduleJohn L. Villalovos2021-11-305-12/+13
| | | | | | | | | | Have code use constants from the gitlab.const module instead of from the top-level gitlab module.
| * refactor: deprecate accessing constants from top-level namespaceJohn L. Villalovos2021-11-303-17/+83
|/ | | | | | | | | | | | | | We are planning on adding enumerated constants into gitlab/const.py, but if we do that than they will end up being added to the top-level gitlab namespace. We really want to get users to start using `gitlab.const.` to access the constant values in the future. Add the currently defined constants to a list that should not change. Use a module level __getattr__ function so that we can deprecate access to the top-level constants. Add a unit test which verifies we generate a warning when accessing the top-level constants.
* Merge pull request #1721 from python-gitlab/test/cli-coverageNejc Habjan2021-11-2815-34/+104
|\ | | | | test(cli): improve basic CLI coverage
| * chore(tests): apply review suggestionsNejc Habjan2021-11-282-4/+4
| |
| * test(cli): improve basic CLI coveragetest/cli-coverageNejc Habjan2021-11-2715-33/+103
| |
* | chore(deps): update dependency sphinx to v4.3.1Renovate Bot2021-11-271-1/+1
| |
* | Merge pull request #1714 from python-gitlab/jlvillal/pytest_script_launch_modeNejc Habjan2021-11-271-4/+1
|\ \ | |/ |/| chore: remove pytest-console-scripts specific config