Page MenuHomeSoftware Heritage

pre-commit: Fix codespell false positives
ClosedPublic

Authored by anlambert on Aug 19 2022, 11:33 AM.

Details

Summary
pre-commit run --all-files
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/PyCQA/isort.
[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://gitlab.com/pycqa/flake8.
[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...
[INFO] Installing environment for https://github.com/PyCQA/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Trim Trailing Whitespace.................................................Passed
Check JSON...........................................(no files to check)Skipped
Check Yaml...............................................................Passed
flake8...................................................................Passed
codespell................................................................Failed
- hook id: codespell
- exit code: 7

swh/scrubber/tests/test_storage_postgresql.py:259: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:259: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:260: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:285: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:286: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:289: mor  ==> more
swh/scrubber/tests/test_storage_postgresql.py:290: mor  ==> more
swh/scrubber/db.py:359: mor  ==> more
swh/scrubber/db.py:359: mor  ==> more
swh/scrubber/db.py:361: mor  ==> more
swh/scrubber/db.py:362: mor  ==> more
swh/scrubber/db.py:363: mor  ==> more

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

Diff Detail

Repository
rDSCRUB Datastore Scrubber
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8262 (id=29840)

Rebasing onto 36d16bcdda...

Current branch diff-target is up to date.
Changes applied before test
commit 630001ce7b60bdb0ceb2994a42fb5b3aeada1fca
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Aug 19 11:31:43 2022 +0200

    pre-commit: Fix codespell false positives

See https://jenkins.softwareheritage.org/job/DSCRUB/job/tests-on-diff/62/ for more details.

This revision is now accepted and ready to land.Aug 19 2022, 5:10 PM