Fix tox caught errors
This commit is contained in:
@@ -13,7 +13,8 @@ class Interactives:
|
|||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
raise InteractivesSubprocessError(e.output.decode())
|
raise InteractivesSubprocessError(e.output.decode())
|
||||||
|
|
||||||
def walk_sherlock_for_files_with(pattern: str) -> list[str]:
|
# -> list[str] is prefered, but will require deprecation of support for Python 3.8
|
||||||
|
def walk_sherlock_for_files_with(pattern: str) -> list:
|
||||||
"""Check all files within the Sherlock package for matching patterns"""
|
"""Check all files within the Sherlock package for matching patterns"""
|
||||||
pattern: re.Pattern = re.compile(pattern)
|
pattern: re.Pattern = re.compile(pattern)
|
||||||
matching_files: list[str] = []
|
matching_files: list[str] = []
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import subprocess
|
|
||||||
from sherlock import sherlock
|
from sherlock import sherlock
|
||||||
from sherlock_interactives import Interactives
|
from sherlock_interactives import Interactives
|
||||||
from sherlock_interactives import InteractivesSubprocessError
|
from sherlock_interactives import InteractivesSubprocessError
|
||||||
|
|||||||
Reference in New Issue
Block a user