From f4b4b3d7e3904b748d55964e8ed3cdd77d2d5b61 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 19 Jun 2024 22:09:08 -0400 Subject: [PATCH 1/5] Tune up codespell configuration to skip trough and not modify versioneer file --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 7d5ae4a..c34dc1b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -99,8 +99,8 @@ match = match_dir = physioqc/[^tests]* [codespell] -skip = versioneer.py,.git,build,./docs/_build -ignore-words-list = nd,commun +skip = versioneer.py,.git,build,./docs/_build,./physioqc/_version.py +ignore-words-list = nd,commun,trough write-changes = count = quiet-level = 3 From 735681dc213f47dc2d286d49b91bc31d560ba96a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 21 Aug 2024 17:02:01 -0400 Subject: [PATCH 2/5] Add pre-commit definition for codespell --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1cdcb1..9109fb0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,8 @@ repos: - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal +- repo: https://github.com/codespell-project/codespell + # Configuration for codespell is in setup.cfg + rev: v2.2.6 + hooks: + - id: codespell From 2a1d5bb240b23942f72366f43caa70cb20bed39e Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 21 Aug 2024 17:03:39 -0400 Subject: [PATCH 3/5] Fix typo in a template codespell finds now --- .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md index 098ac0d..6695ddd 100644 --- a/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md +++ b/.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md @@ -2,7 +2,7 @@ name: Feature request about: Use this template to request new features. title: '' -labels: Enhacement +labels: Enhancement assignees: '' --- From 9234286eb260fb5de2363f207eafe6bdfcda3ac9 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 21 Aug 2024 17:07:29 -0400 Subject: [PATCH 4/5] Exclude verisoneer's file from checks/fixes by pre-commit --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9109fb0..9e8470c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +# Exclude vendored files +exclude: '^physioqc/_version.py' repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 From 19848a2f8997ab409fd4de296e17a6daf56d4ec0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 21:08:10 +0000 Subject: [PATCH 5/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- physioqc/interfaces/visualizations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physioqc/interfaces/visualizations.py b/physioqc/interfaces/visualizations.py index 3acd1ef..95afdde 100644 --- a/physioqc/interfaces/visualizations.py +++ b/physioqc/interfaces/visualizations.py @@ -99,7 +99,7 @@ def plot_average_peak( Raises ------ ValueError - If an inapropriate plot type is chosen. + If an inappropriate plot type is chosen. """ if plot_mode not in ["traces", "ci", "auto"]: raise ValueError('Plot mode has to be in ["traces", "ci", "auto"]')