From 4bbb4d4ec5cdb45da46dd8cb50322a5e47c32c59 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 17 Oct 2022 22:27:49 +0200 Subject: [PATCH 1/2] Tell codespell to skip `fixture` This will avoid this kind of warnings: WARNING: Decoding file using encoding=utf-8 failed: fixture/8/0/11 WARNING: Trying next encoding iso-8859-1 Seen in: https://results.pre-commit.ci/run/github/48049137/1666036569.rj425j-vQKyvNbJ0CUHdcQ --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d62b10aa40..934de98696 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: rev: v2.1.0 hooks: - id: codespell - args: ["-L", "ba,ihs,kake,nd,noe,nwo,te"] + args: ["-L", "ba,ihs,kake,nd,noe,nwo,te", "-S", "fixture"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: From f11b4494edeb9dba73152b343895d3a8c4ef7512 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 18 Oct 2022 19:37:50 +0200 Subject: [PATCH 2/2] pre-commit: Remove the hard requirement for Python 3.9 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 934de98696..67f61ea8be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: autofix_commit_msg: "style: pre-commit fixes" default_stages: [commit, push] default_language_version: - python: python3.9 + python: python3 repos: - repo: https://github.com/PyCQA/flake8 rev: 3.8.2