Update flake8
This commit is contained in:
parent
fbcafae466
commit
2dcab0c91c
4 changed files with 10 additions and 3 deletions
4
.flake8
4
.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
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
__version__ = '0.1.0'
|
||||
"""JARVIS core shared functionalities."""
|
||||
__version__ = "0.1.0"
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ from jarvis_core import __version__
|
|||
|
||||
|
||||
def test_version():
|
||||
assert __version__ == '0.1.0'
|
||||
assert __version__ == "0.1.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue