From 47f296c5279d39672c67b90934a611469d1d4d8f Mon Sep 17 00:00:00 2001 From: arnab39 Date: Wed, 13 Mar 2024 01:39:38 -0400 Subject: [PATCH 1/5] merged with main --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8cb9a8..6a210c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: ## If you want to avoid flake8 errors due to unused vars or imports: - repo: https://github.com/PyCQA/autoflake - rev: v2.1.1 + rev: v2.3.1 hooks: - id: autoflake args: [ @@ -66,7 +66,7 @@ repos: # Check for type errors with mypy: - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.8.0' + rev: 'v1.9.0' hooks: - id: mypy args: [--disallow-untyped-defs, --ignore-missing-imports] From 39f086b0f12ad7ef86aa59ad44e790f7f3025cd5 Mon Sep 17 00:00:00 2001 From: "D. Benesch" <34680344+danibene@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:36:32 -0400 Subject: [PATCH 2/5] Exclude examples from flake8 checks --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 5d51b6f..8e5f3e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -105,6 +105,7 @@ exclude = dist .eggs docs/conf.py + examples [pyscaffold] # PyScaffold's parameters when the project was created. From 723c2fca7a8da403ee83a5f0599da212e1dbe247 Mon Sep 17 00:00:00 2001 From: "D. Benesch" <34680344+danibene@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:38:46 -0400 Subject: [PATCH 3/5] have mypy exclude examples --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f81bba..d42880c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,4 +9,4 @@ build-backend = "setuptools.build_meta" version_scheme = "no-guess-dev" [tool.mypy] -exclude = ['docs'] +exclude = ['docs', 'examples'] From c271901a05b250b734b859b228aef1c68b0dddec Mon Sep 17 00:00:00 2001 From: "D. Benesch" <34680344+danibene@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:53:41 -0400 Subject: [PATCH 4/5] check if specifying dir in different way fixes exclude --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 8e5f3e3..2f95df6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -105,7 +105,7 @@ exclude = dist .eggs docs/conf.py - examples + examples/* [pyscaffold] # PyScaffold's parameters when the project was created. From 4c15e03149e1c4b596fbc357ca645278427b0d29 Mon Sep 17 00:00:00 2001 From: "D. Benesch" <34680344+danibene@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:59:35 -0400 Subject: [PATCH 5/5] try moving mypy exclude to setup.cfg --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index 2f95df6..a5e78e6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -107,6 +107,9 @@ exclude = docs/conf.py examples/* +[mypy] +exclude = docs|examples + [pyscaffold] # PyScaffold's parameters when the project was created. # This will be used when updating. Do not change!