Skip to content

Commit

Permalink
ci: Adds pytest-testmon to local pre-commit hooks
Browse files Browse the repository at this point in the history
Closes #88

Also adds a few more things to `.gitignore`.
  • Loading branch information
ns-rse committed Dec 11, 2024
1 parent 5808a82 commit 7864332
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,13 @@ _version.py
# Ignore topostats/_version.py as per setuptools_scm
AFMReader/_version.py

# Emacs
\#*
*~
.dir-locals.el

# Pytest-testmon files
.testmon*

# Ignore tmp/ directory
tmp/
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ repos:
language: system
files: \.py$

- repo: local
hooks:
- id: pytest
name: Pytest (testmon)
entry: pytest --testmon
language: system
files: \.py$

ci:
autofix_prs: true
autofix_commit_msg: '[pre-commit.ci] Fixing issues with pre-commit'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dev = [
"black",
"pre-commit",
"pylint",
"pytest-testmon",
"ruff",
"setuptools_scm[toml]",
"wheel"
Expand Down

0 comments on commit 7864332

Please sign in to comment.