From 7bffeb1c1b19693c399ef33512588c9a6b52294c Mon Sep 17 00:00:00 2001 From: Maxime Vast Date: Tue, 23 Apr 2019 16:59:19 +0200 Subject: [PATCH 1/4] add pre-commit-hooks.yaml --- .pre-commit-hooks.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000000..a4b72a5dacb --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,4 @@ +- id: pytest + name: pytest + entry: pytest + language: python From 136c0a9d80e8d4513ff667be36029db924b10a3e Mon Sep 17 00:00:00 2001 From: Maxime Vast Date: Tue, 23 Apr 2019 17:00:30 +0200 Subject: [PATCH 2/4] add types --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index a4b72a5dacb..dc6fc068307 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -2,3 +2,4 @@ name: pytest entry: pytest language: python + types: [python] From 725778346c415e6b779acc469dd38b54d2850b78 Mon Sep 17 00:00:00 2001 From: Maxime Vast Date: Tue, 23 Apr 2019 17:04:44 +0200 Subject: [PATCH 3/4] pass_filenames : false --- .pre-commit-hooks.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index dc6fc068307..bff3ff1bce3 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,5 +1,4 @@ - id: pytest name: pytest entry: pytest - language: python - types: [python] + pass_filenames: false From e6620d3f594ea7485006a07762c90b5e920c2a55 Mon Sep 17 00:00:00 2001 From: Maxime Vast Date: Tue, 23 Apr 2019 17:05:12 +0200 Subject: [PATCH 4/4] add required key --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index bff3ff1bce3..f5c4048d515 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,4 +1,5 @@ - id: pytest name: pytest entry: pytest + language: python pass_filenames: false