aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar skullY <skullydazed@gmail.com>2019-11-23 10:42:39 -0800
committerGravatar skullydazed <skullydazed@users.noreply.github.com>2019-12-01 13:40:14 -0800
commit0ed492978aea83205b73127472c3667c601d515b (patch)
tree181720a026d1d1e293845469e135e4b416baae67 /bin
parenta2c6257942275eb874f79527e1ff13410bc42fb6 (diff)
downloadqmk_firmware-0ed492978aea83205b73127472c3667c601d515b.tar.gz
Add pep8-naming to our python linting
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qmk5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/qmk b/bin/qmk
index 4d5b3d884..60555d3d7 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.')