Running pre-commit run --all-files on the current master branch, I got
black....................................................................Passed
Flake8...................................................................Passed
Trim Trailing Whitespace.................................................Failed
hookid: trailing-whitespace
Files were modified by this hook. Additional output:
Fixing .travis.yml
Fixing .git-commit-template.txt
Fixing README.md
Fix requirements.txt.....................................................Passed
Check for added large files..............................................Passed
Check docstring is first.................................................Passed
Check that executables have shebangs.....................................Passed
Check for merge conflicts................................................Passed
Debug Statements (Python)................................................Passed
Fix End of Files.........................................................Passed
mypy.....................................................................Failed
hookid: mypy
examples/01-two-files/main.py: error: Duplicate module named 'main' (also at 'examples/00-basic/main.py')
The tailing whitespace is easy to solve, so let's ignore it. However, I can hardly make mypy pass since
pre-commit cannot run mypy in its own virtualenv, you can hardly let it check imports
Running
pre-commit run --all-files
on the current master branch, I gotThe tailing whitespace is easy to solve, so let's ignore it. However, I can hardly make
mypy
pass sincemypy
in its own virtualenv, you can hardly let it check importsmypy hpman