[arch-gen][flake8] flake8.main.git module no longer available on flake8 v. 1:4.0.1-1, breaking pre-commit flake8 hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Today I upgraded the system, and got a new flake8 version:

[2021-11-03T02:29:18-0600] [ALPM] upgraded flake8 (1:3.9.2-2 -> 1:4.0.1-1)

However that version no longer provides the flake8.main.git module, therefore now I get a failure when trying to commit something (using the flake8 pre-commit hook the work project uses):

% git ci --amend INFO | Running hook pre-commit.d/02-check_flake8...
 ERROR    | Traceback (most recent call last):
File "/home/vasqueja/scm/hpe/git/provision-sdk/.git/hooks/pre-commit.d/02-check_flake8", line 25, in <module> from flake8.main.git import (config_for, update_excludes, ModuleNotFoundError: No module named 'flake8.main.git' ERROR | Hook pre-commit.d/02-check_flake8 failed. Aborting...

Is there a way to overcome this?  Is there sort of a new packet covering for that functionality?  I don't see any new optional dependency which might have covered for the missing module:

Depends On      : python-pyflakes  python-mccabe  python-pycodestyle  python-entrypoints
Optional Deps   : None
Required By     : python-flake8-polyfill

Thanks !

--
Javier



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux