Browse Source

Add pylint to pre-commit, fix pytest

Sean 3 năm trước cách đây
mục cha
commit
f8b8af7618
1 tập tin đã thay đổi với 13 bổ sung9 xóa
  1. 13 9
      .pre-commit-config.yaml

+ 13 - 9
.pre-commit-config.yaml

@@ -26,11 +26,11 @@ repos:
       - id: isort
         name: isort (python)
 
-  # - repo: https://github.com/PyCQA/pydocstyle
-  #   rev: 6.1.1
-  #   hooks:
-  #     - id: pydocstyle
-  #       name: pydocstyle
+  - repo: https://github.com/PyCQA/pydocstyle
+    rev: 6.1.1
+    hooks:
+      - id: pydocstyle
+        name: pydocstyle
 
   - repo: https://github.com/pre-commit/mirrors-mypy
     rev: v0.920
@@ -39,19 +39,23 @@ repos:
         name: mypy
         additional_dependencies: ["requests"]
 
+  - repo: https://github.com/pycqa/pylint
+    rev: v2.15.3
+    hooks:
+      - id: pylint
+        types: [python]
+
   - repo: local
     hooks:
       - id: poetry-install
         name: Install project deps
         entry: poetry install
-        language: python
-        additional_dependencies: [pre-commit, poetry]
+        language: system
         always_run: true
         pass_filenames: false
       - id: run-tests
         name: Run tests
         entry: poetry run pytest
-        language: python
-        additional_dependencies: [pre-commit, poetry]
+        language: system
         always_run: true
         pass_filenames: false