diff options
-rwxr-xr-x | bin/qmk | 5 | ||||
-rwxr-xr-x | lib/python/qmk/cli/doctor.py | 2 | ||||
-rw-r--r-- | lib/python/qmk/tests/test_qmk_errors.py | 2 | ||||
-rw-r--r-- | requirements.txt | 1 |
4 files changed, 8 insertions, 2 deletions
@@ -25,6 +25,11 @@ with open(os.path.join(qmk_dir, 'requirements.txt'), 'r') as fd: | |||
25 | line = line.split('#')[0] | 25 | line = line.split('#')[0] |
26 | 26 | ||
27 | module = line.split('=')[0] if '=' in line else line | 27 | module = line.split('=')[0] if '=' in line else line |
28 | |||
29 | if module in ['pep8-naming']: | ||
30 | # Not every module is importable by its own name. | ||
31 | continue | ||
32 | |||
28 | if not find_spec(module): | 33 | if not find_spec(module): |
29 | print('Could not find module %s!' % module) | 34 | print('Could not find module %s!' % module) |
30 | print('Please run `pip3 install -r requirements.txt` to install the python dependencies.') | 35 | print('Please run `pip3 install -r requirements.txt` to install the python dependencies.') |
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py index 1010eafb3..2421e520e 100755 --- a/lib/python/qmk/cli/doctor.py +++ b/lib/python/qmk/cli/doctor.py | |||
@@ -39,7 +39,7 @@ def doctor(cli): | |||
39 | ok = False | 39 | ok = False |
40 | 40 | ||
41 | # Determine our OS and run platform specific tests | 41 | # Determine our OS and run platform specific tests |
42 | OS = platform.system() | 42 | OS = platform.system() # noqa (N806), uppercase name is ok in this instance |
43 | 43 | ||
44 | if OS == "Darwin": | 44 | if OS == "Darwin": |
45 | cli.log.info("Detected {fg_cyan}macOS.") | 45 | cli.log.info("Detected {fg_cyan}macOS.") |
diff --git a/lib/python/qmk/tests/test_qmk_errors.py b/lib/python/qmk/tests/test_qmk_errors.py index 1d8690b7e..948e7ef74 100644 --- a/lib/python/qmk/tests/test_qmk_errors.py +++ b/lib/python/qmk/tests/test_qmk_errors.py | |||
@@ -1,7 +1,7 @@ | |||
1 | from qmk.errors import NoSuchKeyboardError | 1 | from qmk.errors import NoSuchKeyboardError |
2 | 2 | ||
3 | 3 | ||
4 | def test_NoSuchKeyboardError(): | 4 | def test_nosuchkeyboarderror(): |
5 | try: | 5 | try: |
6 | raise NoSuchKeyboardError("test message") | 6 | raise NoSuchKeyboardError("test message") |
7 | except NoSuchKeyboardError as e: | 7 | except NoSuchKeyboardError as e: |
diff --git a/requirements.txt b/requirements.txt index 033b688fc..074b11a8c 100644 --- a/requirements.txt +++ b/requirements.txt | |||
@@ -6,3 +6,4 @@ colorama | |||
6 | hjson | 6 | hjson |
7 | nose2 | 7 | nose2 |
8 | flake8 | 8 | flake8 |
9 | pep8-naming | ||