Skip to content

Commit

Permalink
⬆️(project) update flake8 from 3.5.0 to 3.6.0
Browse files Browse the repository at this point in the history
flake 8 now enforces regexes to be raw strings. We had forgotten
one in our code and it had to be corrected.
  • Loading branch information
pyup-bot authored and sampaccoud committed Nov 19, 2018
1 parent 7bb1714 commit 2fcf42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gitlint/gitlint_emoji.py
Expand Up @@ -31,7 +31,7 @@ def validate(self, title, _commit):
"https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json"
).json()["gitmojis"]
emojis = [item["emoji"] for item in gitmojis]
pattern = "^({:s})\(.*\)\s[a-z].*$".format("|".join(emojis))
pattern = r"^({:s})\(.*\)\s[a-z].*$".format("|".join(emojis))
if not re.search(pattern, title):
violation_msg = 'Title does not match regex "<gitmoji>(<scope>) <subject>"'
return [RuleViolation(self.id, violation_msg, title)]
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -85,7 +85,7 @@ dev =
black==18.9b0
Faker==0.9.2
factory-boy[django]==2.11.1
flake8==3.5.0
flake8==3.6.0
ipdb==0.11
ipython==7.0.1
ipython-genutils==0.2.0
Expand Down

0 comments on commit 2fcf42e

Please sign in to comment.