Skip to content

Commit e4ddfa3

Browse files
authored
Merge pull request #23 from Kavuti/feature/format-code-pep8
Format code with Black + Pre-commit configuration
2 parents e65d98c + 478f7fb commit e4ddfa3

51 files changed

Lines changed: 2946 additions & 1277 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tg_bot/config.py
66
.directory
77
.vscode
88
*.env*
9+
*.DS_Store*
910

1011
# Created by https://www.gitignore.io/api/python
1112
# Edit at https://www.gitignore.io/?templates=python

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
default_language_version:
7+
python: python3.6

Pipfile

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,39 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7+
black = "*"
78

89
[packages]
9-
future = "*"
10-
emoji = "*"
11-
requests = "*"
12-
python-telegram-bot = ">=11.1.0"
13-
psycopg2-binary = "*"
14-
feedparser = "*"
15-
SQLAlchemy = "*"
10+
future = "==0.17.1"
11+
emoji = "==0.5.3"
12+
requests = "==2.22.0"
13+
python-telegram-bot = "==11.1.0"
14+
psycopg2-binary = "==2.8.3"
15+
feedparser = "==5.2.1"
16+
SQLAlchemy = "==1.3.6"
17+
pre-commit = "==1.18.0"
18+
asn1crypto = "==0.24.0"
19+
certifi = "==2019.6.16"
20+
cffi = "==1.12.3"
21+
cfgv = "==2.0.1"
22+
chardet = "==3.0.4"
23+
cryptography = "==2.7"
24+
identify = "==1.4.5"
25+
idna = "==2.8"
26+
importlib-metadata = "==0.19"
27+
nodeenv = "==1.3.3"
28+
pycparser = "==2.19"
29+
six = "==1.12.0"
30+
toml = "==0.10.0"
31+
urllib3 = "==1.25.3"
32+
virtualenv = "==16.7.2"
33+
zipp = "==0.5.2"
34+
"aspy.yaml" = "==1.3.0"
35+
importlib_resources = "==1.0.2"
36+
PyYAML = "==5.1.2"
1637

1738
[requires]
1839
python_version = "3.6"
40+
41+
[pipenv]
42+
allow_prereleases = true

Pipfile.lock

Lines changed: 152 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
1-
future
2-
emoji
3-
requests
4-
sqlalchemy
5-
python-telegram-bot>=11.1.0
6-
psycopg2-binary
7-
feedparser
1+
-i https://pypi.org/simple
2+
asn1crypto==0.24.0
3+
aspy.yaml==1.3.0
4+
certifi==2019.6.16
5+
cffi==1.12.3
6+
cfgv==2.0.1
7+
chardet==3.0.4
8+
cryptography==2.7
9+
emoji==0.5.3
10+
feedparser==5.2.1
11+
future==0.17.1
12+
identify==1.4.5
13+
idna==2.8
14+
importlib-metadata==0.19
15+
importlib-resources==1.0.2 ; python_version < '3.7'
16+
nodeenv==1.3.3
17+
pre-commit==1.18.0
18+
psycopg2-binary==2.8.3
19+
pycparser==2.19
20+
python-telegram-bot==11.1.0
21+
pyyaml==5.1.2
22+
requests==2.22.0
23+
six==1.12.0
24+
sqlalchemy==1.3.6
25+
toml==0.10.0
26+
urllib3==1.25.3
27+
virtualenv==16.7.2
28+
zipp==0.5.2

0 commit comments

Comments
 (0)