Skip to content

Commit

Permalink
Ignore setup.cfg in pre-commit's Trailing Whitespace. (#602)
Browse files Browse the repository at this point in the history
* Ignore setup.cfg in pre-commit's EOF Fixer.

* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci

* Properly exclude setup.cfg in trailing-whitespace

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
umesh-timalsina and pre-commit-ci[bot] committed Oct 20, 2021
1 parent 8f58b22 commit f84af37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Expand Up @@ -14,6 +14,7 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: 'setup.cfg'
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Expand Up @@ -9,15 +9,15 @@ tag_name = {new_version}
omit = gmso/tests/*

[coverage:report]
exclude_lines =
exclude_lines =
pragma: no cover

def __repr__
def __str__
except ImportError
if 0:
if __name__ == .__main__.:
omit =
omit =
gmso/tests/*

[bumpversion:file:gmso/__init__.py]
Expand Down

0 comments on commit f84af37

Please sign in to comment.