Skip to content

Commit

Permalink
Ignore the files generated by miniver
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksnape committed Jan 18, 2020
1 parent aec944b commit 4815e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion menpo/test/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
)
def test_black():
runner = CliRunner()
result = runner.invoke(black.main, [str(menpo_root), "--check"])
# Manually ignore the file generated by miniver
result = runner.invoke(
black.main, [str(menpo_root), "--check", "--exclude", "_static_version.py"]
)
assert result.exit_code == 0, result.output
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ exclude = '''
| _build
| build
| dist
| _version.py
)
)/
| _version.py
| _static_version.py
)
'''

0 comments on commit 4815e40

Please sign in to comment.