Staging instance, all changes can be removed at any time

Skip to content

pre-commit: Fix tests data exclusion from codespell check

Previous regexp does not seem to work anymore so use a simpler one.

15:54 $ make check 
pre-commit run --all-files
trim trailing whitespace.................................................Passed
check json...............................................................Passed
check yaml...............................................................Passed
flake8...................................................................Passed
Check source code spelling...............................................Failed
- hook id: codespell
- exit code: 65

swh/loader/package/npm/tests/data/https_replicate.npmjs.com/nativescript-telerik-analytics:60: nIn ==> inn, min, bin, nine
swh/loader/package/aur/tests/data/fake_aur.sh:91: Toi ==> To, toy
swh/loader/package/pubdev/tests/data/https_pub.dev/api_packages_abstract_io:7: externaly ==> externally
swh/loader/package/pubdev/tests/data/https_pub.dev/api_packages_abstract_io:30: externaly ==> externally
swh/loader/package/pubdev/tests/data/https_pub.dev/api_packages_abstract_io:52: externaly ==> externally
swh/loader/package/pubdev/tests/data/https_pub.dev/api_packages_abstract_io:74: externaly ==> externally
swh/loader/package/debian/tests/data/http_deb.debian.org/debian_pool_contrib_c_cicero_cicero_0.7.2-4.dsc:11: infinit ==> infinite
swh/loader/package/debian/tests/data/http_deb.debian.org/debian_pool_contrib_c_cicero_cicero_0.7.2-3.dsc:11: infinit ==> infinite
swh/loader/package/pubdev/tests/data/fake_pubdev.sh:14: thier ==> their

mypy.....................................................................Passed
isort....................................................................Passed
black....................................................................Passed
make: *** [../Makefile.python:28: check] Error 1

Migrated from D8602 (view on Phabricator)

Merge request reports

Loading