diff --git a/gitlab/base.py b/gitlab/base.py index f81d03989..a791db299 100644 --- a/gitlab/base.py +++ b/gitlab/base.py @@ -227,7 +227,7 @@ def total(self): class RESTManager(object): """Base class for CRUD operations on objects. - Derivated class must define ``_path`` and ``_obj_cls``. + Derived class must define ``_path`` and ``_obj_cls``. ``_path``: Base URL path on which requests will be sent (e.g. '/projects') ``_obj_cls``: The class of objects that will be created diff --git a/gitlab/cli.py b/gitlab/cli.py index 0ff2f22be..26ea0c05d 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -98,7 +98,7 @@ def _get_base_parser(add_help=True): "-c", "--config-file", action="append", - help=("Configuration file to use. Can be used " "multiple times."), + help="Configuration file to use. Can be used multiple times.", ) parser.add_argument( "-g", diff --git a/gitlab/config.py b/gitlab/config.py index 67301a0c5..4b4d6fdec 100644 --- a/gitlab/config.py +++ b/gitlab/config.py @@ -63,7 +63,7 @@ def __init__(self, gitlab_id=None, config_files=None): self.gitlab_id = self._config.get("global", "default") except Exception: raise GitlabIDError( - "Impossible to get the gitlab id " "(not specified in config file)" + "Impossible to get the gitlab id (not specified in config file)" ) try: diff --git a/gitlab/tests/test_base.py b/gitlab/tests/test_base.py index 47eda6c19..4aa280cda 100644 --- a/gitlab/tests/test_base.py +++ b/gitlab/tests/test_base.py @@ -56,9 +56,6 @@ class MGR(base.RESTManager): class Parent(object): id = 42 - class BrokenParent(object): - no_id = 0 - mgr = MGR(FakeGitlab(), parent=Parent()) self.assertEqual(mgr._computed_path, "/tests/42/cases")