I don't see the same results between running pre-commit locally and pre-commit.ci in github.
However, if I read the documentation of pre-commit.ci correctly, the configuration files used are the same.
Locally:
% git commit -m "pre-commit run --all-files"
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/econdami/.cache/pre-commit/patch1678211848-117234.
check for added large files..............................................Passed
check python ast.........................................................Passed
check for case conflicts.................................................Passed
check docstring is first.................................................Passed
check json...........................................(no files to check)Skipped
check for merge conflicts................................................Passed
check toml...........................................(no files to check)Skipped
check xml............................................(no files to check)Skipped
check yaml...........................................(no files to check)Skipped
debug statements (python)................................................Passed
fix end of files.........................................................Passed
fix python encoding pragma...............................................Passed
python tests naming..................................(no files to check)Skipped
trim trailing whitespace.................................................Passed
black....................................................................Passed
isort (python)...........................................................Passed
interrogate..............................................................Passed
flake8 under python3.....................................................Passed
[INFO] Restored changes from /home/econdami/.cache/pre-commit/patch1678211848-117234.
[master ec627fd2] pre-commit run --all-files
1 file changed, 1 insertion(+), 2 deletions(-)
After a git push
, I observe this result for pre-commit.ci. Locally we do not observe any issue with isort ... I suspect a configuration issue and I have read the documentation but I can't find what is wrong!