Browse Source

make linter happy

https://code.grasp-open.com/grasp-tools/python-dlinfo/merge_requests/1
Fabian Peter Hammerle 4 years ago
parent
commit
3736bec2ae
3 changed files with 6 additions and 1 deletions
  1. 1 1
      .gitlab-ci.yml
  2. 4 0
      .pylintrc
  3. 1 0
      dlinfo/__init__.py

+ 1 - 1
.gitlab-ci.yml

@@ -19,7 +19,7 @@ before_script:
 linting:
   stage: test
   script:
-  - pipenv run pylint dlinfo
+  - pipenv run pylint dlinfo tests/*.py
 
 tests:
   stage: test

+ 4 - 0
.pylintrc

@@ -0,0 +1,4 @@
+[MESSAGES CONTROL]
+
+disable=missing-docstring,
+        too-few-public-methods

+ 1 - 0
dlinfo/__init__.py

@@ -27,6 +27,7 @@ class DLInfo:
 
     def __init__(self, cdll: ctypes.CDLL):
         self._linkmap = ctypes.c_void_p()
+        # pylint: disable=protected-access
         if _DLINFO(cdll._handle, _RTLD_DI_LINKMAP, ctypes.byref(self._linkmap)) != 0:
             raise Exception('dlinfo on {} failed'.format(cdll._name))