diff options
author | skullY <skullydazed@gmail.com> | 2019-11-23 10:42:39 -0800 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-01-09 08:57:11 +0900 |
commit | 0f1f9ba155b126976b0ced279676188060f0015f (patch) | |
tree | 23548f2efe55c504cd2ca2172038d40cb888966f /bin/qmk | |
parent | ac75812e50f25b8ca262688f99177f11d5b17441 (diff) |
Add pep8-naming to our python linting
Diffstat (limited to 'bin/qmk')
-rwxr-xr-x | bin/qmk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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.') |