From 0ed492978aea83205b73127472c3667c601d515b Mon Sep 17 00:00:00 2001 From: skullY Date: Sat, 23 Nov 2019 10:42:39 -0800 Subject: Add pep8-naming to our python linting --- bin/qmk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/qmk') diff --git a/bin/qmk b/bin/qmk index 4d5b3d884f..60555d3d70 100755 --- a/bin/qmk +++ b/bin/qmk @@ -25,6 +25,11 @@ with open(os.path.join(qmk_dir, 'requirements.txt'), 'r') as fd: line = line.split('#')[0] module = line.split('=')[0] if '=' in line else line + + if module in ['pep8-naming']: + # Not every module is importable by its own name. + continue + if not find_spec(module): print('Could not find module %s!' % module) print('Please run `pip3 install -r requirements.txt` to install the python dependencies.') -- cgit v1.2.1