Skip to content

Commit

Permalink
Exclude test_data datasets from formatter and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolossus committed May 16, 2024
1 parent 8a9b685 commit 41e8eb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ repos:
rev: v4.5.0
hooks:
- id: fix-encoding-pragma
exclude: tests/test_data
- id: trailing-whitespace
exclude: tests/test_data
- id: end-of-file-fixer
exclude: tests/test_data
- id: check-docstring-first
- id: debug-statements
- id: check-toml
- id: check-yaml
exclude: tests/test_data
- id: requirements-txt-fixer
- id: detect-private-key
- id: check-merge-conflict
Expand All @@ -17,6 +21,7 @@ repos:
rev: 24.4.2
hooks:
- id: black
exclude: tests/test_data
- id: black-jupyter

- repo: https://github.com/pycqa/isort
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ exclude = [
"venv",
]

# In addition to the standard set of exclusions, omit:
extend-exclude = ["tests/test_data"]

# Same as Black.
line-length = 120
indent-width = 4
Expand Down

0 comments on commit 41e8eb7

Please sign in to comment.