feat(style): add black

This commit is contained in:
Romain J 2020-06-07 17:41:34 +02:00
parent 9869312ee8
commit 5e8868b660
9 changed files with 19 additions and 6 deletions

5
Makefile Normal file
View file

@ -0,0 +1,5 @@
PYTHON = python
# Blackify code
reformat:
$(PYTHON) -m black `git ls-files "*.py"`

View file

@ -1,3 +1,6 @@
![](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-%23007ec6)
![](https://img.shields.io/badge/dynamic/json?color=%23dfb317&label=issues&query=%24.open_issues_count&suffix=%20open&url=https%3A%2F%2Fgit.gnous.eu%2Fapi%2Fv1%2Frepos%2FGnousEU%2Ftuxbot-bot%2F)
# Installing Tuxbot
It is preferable to install the bot on a dedicated user. If you don't know how to do it, please refer to [this guide](https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart)

View file

@ -17,6 +17,7 @@ install_requires =
async-timeout==3.0.1
asyncpg==0.20.1
attrs==19.3.0
black==19.10b0
braceexpand==0.1.5
cachetools==4.1.0
certifi==2020.4.5.1
@ -35,12 +36,16 @@ install_requires =
iso8601==0.1.12
jishaku==1.18.2.188
multidict==4.7.6
pathspec<1,>=0.6
psutil==5.7.0
PyPika==0.37.7
pytz==2020.1
regex==2020.6.7
requests==2.23.0
six==1.15.0
toml>=0.9.4
tortoise-orm==0.16.13
typed-ast>=1.4.0
typing-extensions==3.7.4.2
urllib3==1.25.9
websockets==8.1

View file

@ -10,7 +10,7 @@ __version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.releaselevel
version_info.releaselevel,
).replace("\n", "")

View file

@ -10,7 +10,7 @@ __version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.releaselevel
version_info.releaselevel,
).replace("\n", "")

View file

@ -13,7 +13,7 @@ __version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.releaselevel
version_info.releaselevel,
).replace("\n", "")

View file

@ -10,7 +10,7 @@ __version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.releaselevel
version_info.releaselevel,
).replace("\n", "")

View file

@ -10,7 +10,7 @@ __version__ = "v{}.{}.{}-{}".format(
version_info.major,
version_info.minor,
version_info.micro,
version_info.releaselevel
version_info.releaselevel,
).replace("\n", "")

View file

@ -1,7 +1,7 @@
import logging
import os
from pathlib import Path
from typing import Callable, Union, Dict
from typing import Callable, Union
__all__ = [
"get_locale",