Skip to content

Commit

Permalink
Merge pull request #20 from yarikoptic/bf-codespell
Browse files Browse the repository at this point in the history
Tune up codespell configuration to skip trough and not modify versioneer file
smoia authored Oct 8, 2024
2 parents 4eed136 + 19848a2 commit fec2d03
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ISSUE_TEMPLATE_FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
name: Feature request
about: Use this template to request new features.
title: ''
labels: Enhacement
labels: Enhancement
assignees: ''
---

7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
@@ -32,3 +34,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
2 changes: 1 addition & 1 deletion physioqc/interfaces/visualizations.py
Original file line number Diff line number Diff line change
@@ -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"]')
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -96,8 +96,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

0 comments on commit fec2d03

Please sign in to comment.