Browse Source

pipeline: added pylint-import-requirements

Fabian Peter Hammerle 3 years ago
parent
commit
e23410b69d
3 changed files with 19 additions and 2 deletions
  1. 2 1
      .travis.yml
  2. 1 0
      Pipfile
  3. 16 1
      Pipfile.lock

+ 2 - 1
.travis.yml

@@ -14,8 +14,9 @@ install:
 - pipenv graph
 
 script:
-- pipenv run pylint freesurfer_surface tests/*
 - pipenv run pytest --cov=freesurfer_surface --cov-report=term-missing --cov-fail-under=100
+- pipenv run pylint --load-plugins=pylint_import_requirements freesurfer_surface
+- pipenv run pylint tests/*
 
 after_success:
 - pip install coveralls

+ 1 - 0
Pipfile

@@ -12,6 +12,7 @@ numpy = "<1.19"
 
 [dev-packages]
 pylint = ">=2.3.0"
+pylint-import-requirements = "*"
 pytest = "*"
 pytest-cov = "*"
 "autopep8" = "<2"

+ 16 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "7a5a5b924ab647a6534380e628a59508b82f5cda423f23fd970e98263e43a2bc"
+            "sha256": "ab88463e62416c4cb8d4bf841f32ff2a908b4c4f0c245a23055cb65523a1272f"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -109,6 +109,13 @@
             ],
             "version": "==5.3"
         },
+        "importlib-metadata": {
+            "hashes": [
+                "sha256:77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da",
+                "sha256:cefa1a2f919b866c5beb7c9f7b0ebb4061f30a8a9bf16d609b000e2dfaceb9c3"
+            ],
+            "version": "==2.0.0"
+        },
         "iniconfig": {
             "hashes": [
                 "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
@@ -202,6 +209,14 @@
             "index": "pypi",
             "version": "==2.6.0"
         },
+        "pylint-import-requirements": {
+            "hashes": [
+                "sha256:39d0993baa0991c2c6258d310aacd5f69c850ba59cb3d2ae8aa69886886b7135",
+                "sha256:bc138263bf1f79d8d1bf3d3f6786248024a71b4202cd19a189f1346f3e5b20a7"
+            ],
+            "index": "pypi",
+            "version": "==2.0.5"
+        },
         "pyparsing": {
             "hashes": [
                 "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1",