You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/08/04 04:27:06 UTC

[GitHub] [incubator-superset] john-bodley commented on a change in pull request #10499: chore: Adding pip-compile-multi et al.

john-bodley commented on a change in pull request #10499:
URL: https://github.com/apache/incubator-superset/pull/10499#discussion_r464791667



##########
File path: .pre-commit-config.yaml
##########
@@ -15,29 +15,35 @@
 # limitations under the License.
 #
 repos:
--   repo: https://github.com/ambv/black
-    rev: 19.10b0
-    hooks:
-    -   id: black
-        language_version: python3
-
--   repo: https://github.com/asottile/seed-isort-config
+  - repo: https://github.com/asottile/seed-isort-config
     rev: v1.9.3
     hooks:
-    -   id: seed-isort-config
-
--   repo: https://github.com/pre-commit/mirrors-isort
+      - id: seed-isort-config
+  - repo: https://github.com/pre-commit/mirrors-isort
     rev: v4.3.21
     hooks:
-    -   id: isort
-
--   repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v2.2.3
+      - id: isort
+  - repo: https://github.com/pre-commit/mirrors-mypy
+    rev: v0.770
+    hooks:
+      - id: mypy
+  - repo: https://github.com/peterdemin/pip-compile-multi
+    rev: v1.5.8
     hooks:
-    -   id: trailing-whitespace
-    -   id: end-of-file-fixer
-    -   id: check-docstring-first
-    -   id: check-added-large-files
-    -   id: check-yaml
+      - id: pip-compile-multi-verify
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v3.2.0
+    hooks:
+      - id: check-added-large-files
+      - id: check-docstring-first
+      - id: check-yaml
         exclude: ^helm/superset/templates/
-    -   id: debug-statements
+      - id: debug-statements
+      - id: end-of-file-fixer
+      - id: trailing-whitespace
+        args: ["--markdown-linebreak-ext=md"]

Review comment:
       I've been tearing my hair out with the `trailing-whitespace` hook. The hook works locally but complains in a remote setting stating that `README.md` needs reformatting albeit the fact that by construction the environments/package versions are equivalent. The only way I was able to resolve this was with the  `--markdown-linebreak-ext` argument.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org