also
- fix trailing ws reported by pre-commit
- pre-commit: explicitely whitelist 'iff' when running codespell
- Fix a few typos reported by codespell
Differential D2312
Add a pre-commit-hooks.yaml config file douardda on Nov 20 2019, 11:50 AM. Authored by
Details
also
try it using pre-commit run --all-files See following diff for some fixes in utils and bin scripts.
Diff Detail
Event TimelineComment Actions Build is green Comment Actions Build is green Comment Actions Include fixes reported by pre-commit hooks in this diff
Comment Actions Build is green Comment Actions For the mypy check, instead of listing the needed dependencies in one more file, and instead of depending on an external hook repository, we could run it as a system hook (which will run in your own dev venv) instead of a python hook (which runs in an isolated venv). Comment Actions Ah, I understand why the comment I submitted yesterday got lost: it's in another diff! :) Comment Actions Build is green Comment Actions Build is green Comment Actions Build is green Comment Actions cool, runs fine on my side: $ workon swh $ cd swh-storage $ arc patch D2312 $ pre-commit run --all-files [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/codespell-project/codespell. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/codespell-project/codespell. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... Trim Trailing Whitespace.................................................Passed Flake8...................................................................Passed Check JSON...............................................................Passed Check Yaml...............................................................Passed codespell................................................................Passed mypy.....................................................................Passed |