diff --git a/.flake8 b/.flake8 index 6e7cd96..c747e10 100644 --- a/.flake8 +++ b/.flake8 @@ -1,4 +1,7 @@ [flake8] +exclude = + tests/* + extend-ignore = Q0, E501, C812, E203, W503, # These default to arguing with Black. We might configure some of them eventually ANN1, # Ignore self and cls annotations @@ -11,4 +14,5 @@ extend-ignore = # Plugins we don't currently include: flake8-return R503, # missing explicit return at the end of function ableto return non-None value. + max-line-length=100 diff --git a/jarvis_core/__init__.py b/jarvis_core/__init__.py index b794fd4..8a35a45 100644 --- a/jarvis_core/__init__.py +++ b/jarvis_core/__init__.py @@ -1 +1,2 @@ -__version__ = '0.1.0' +"""JARVIS core shared functionalities.""" +__version__ = "0.1.0" diff --git a/jarvis_core/filters.py b/jarvis_core/filters.py index 620bf20..9ff64e8 100644 --- a/jarvis_core/filters.py +++ b/jarvis_core/filters.py @@ -2,7 +2,9 @@ import re invites = re.compile( - r"(?:https?://)?(?:www.)?(?:discord.(?:gg|io|me|li)|discord(?:app)?.com/invite)/([^\s/]+?)(?=\b)", flags=re.IGNORECASE) + r"(?:https?://)?(?:www.)?(?:discord.(?:gg|io|me|li)|discord(?:app)?.com/invite)/([^\s/]+?)(?=\b)", + flags=re.IGNORECASE, +) custom_emote = re.compile(r"<:\w+:(\d+)>$", flags=re.IGNORECASE) diff --git a/tests/test_jarvis_core.py b/tests/test_jarvis_core.py index 1b64ea7..6d89349 100644 --- a/tests/test_jarvis_core.py +++ b/tests/test_jarvis_core.py @@ -2,4 +2,4 @@ from jarvis_core import __version__ def test_version(): - assert __version__ == '0.1.0' + assert __version__ == "0.1.0"