| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Add running the unit tests on windows-latest and macos-latest with
Python 3.10.
|
| |\
| |
| | |
chore: add initial pylint check
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
If .pre-commit-config.yaml or .github/workflows/pre_commit.yml are
updated then run pre-commit.
|
| |/
|
|
|
|
| |
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.
|
| |\
| |
| | |
Enable more strict mypy checking
|
| | |
| |
| |
| | |
Enable 'warn_redundant_casts'for mypy and resolve one issue.
|
| |/
|
|
|
| |
Enable the subset of the 'mypy --strict' options that work with no
changes to the code.
|
| | |
|
| |\
| |
| | |
docs: only use type annotations for documentation
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
chore: attempt to be more informative for missing attributes
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
|/| |
refactor: explicitly import gitlab.const values into top-level namespace
|
| | |
| |
| |
| | |
Update the docs to use gitlab.const to access constants.
|
| | |
| |
| |
| |
| | |
Have code use constants from the gitlab.const module instead of from
the top-level gitlab module.
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\
| |
| | |
test(cli): improve basic CLI coverage
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| |/
|/| |
chore: remove pytest-console-scripts specific config
|
| |/
|
|
|
|
|
|
|
| |
Remove the pytest-console-scripts specific config from the global
'[pytest]' config section.
Use the command line option `--script-launch-mode=subprocess`
Closes #1713
|
| |\
| |
| | |
feat(api): add support for epic notes
|
| | |
| |
| |
| |
| |
| | |
Added support for notes on group epics
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
|
| |\ \
| | |
| | | |
feat: add support for `projects.groups.list()`
|
| |/ /
| |
| |
| |
| |
| | |
Add support for `projects.groups.list()` endpoint.
Closes #1717
|
| |/ |
|
| |\
| |
| | |
chore: remove duplicate/no-op tests from meta/test_ensure_type_hints
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before we were generating 725 tests for the
meta/test_ensure_type_hints.py tests. Which isn't a huge concern as
it was fairly fast. But when we had a failure we would usually get two
failures for each problem as the same test was being run multiple
times.
Changed it so that:
1. Don't add tests that are not for *Manager classes
2. Use a set so that we don't have duplicate tests.
After doing that our generated test count in
meta/test_ensure_type_hints.py went from 725 to 178 tests.
Additionally removed the parsing of `pyproject.toml` to generate files
to ignore as we have finished adding type-hints to all files in
gitlab/v4/objects/. This also means we no longer use the toml library
so remove installation of `types-toml`.
To determine the test count the following command was run:
$ tox -e py39 -- -k test_ensure_type_hints
|
| |\
| |
| | |
chore: add type-hints to remaining gitlab/v4/objects/*.py files
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When attempting to add type-hints to the the 'manager' attribute into
a RESTObject derived class it would break things.
This was because our auto-manager creation code would automatically
add the specified annotated manager to the 'manager' attribute. This
breaks things.
Now check in our auto-manager creation if our attribute is called
'manager'. If so we ignore it.
|
| |\ \
| | |
| | | |
feat: remove support for Python 3.6, require 3.7 or higher
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Python 3.6 is End-of-Life (EOL) as of 2021-12 as stated in
https://www.python.org/dev/peps/pep-0494/
By dropping support for Python 3.6 and requiring Python 3.7 or higher
it allows python-gitlab to take advantage of new features in Python
3.7, which are documented at:
https://docs.python.org/3/whatsnew/3.7.html
Some of these new features that may be useful to python-gitlab are:
* PEP 563, postponed evaluation of type annotations.
* dataclasses: PEP 557 – Data Classes
* importlib.resources
* PEP 562, customization of access to module attributes.
* PEP 560, core support for typing module and generic types.
* PEP 565, improved DeprecationWarning handling
BREAKING CHANGE: As of python-gitlab 3.0.0, Python 3.6 is no longer
supported. Python 3.7 or higher is required.
|
| | | | |
|