IliaLarchenko
commited on
Commit
•
c6e359f
1
Parent(s):
7622beb
added pre-commit hooks
Browse files- .pre-commit-config.yaml +17 -0
- black.toml +21 -0
- requirements.txt +75 -3
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
repos:
|
2 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
3 |
+
rev: v2.3.0
|
4 |
+
hooks:
|
5 |
+
- id: flake8
|
6 |
+
- id: trailing-whitespace
|
7 |
+
- id: end-of-file-fixer
|
8 |
+
- id: requirements-txt-fixer
|
9 |
+
- id: check-added-large-files
|
10 |
+
- id: check-json
|
11 |
+
- id: pretty-format-json
|
12 |
+
args: [--autofix]
|
13 |
+
- repo: https://github.com/psf/black
|
14 |
+
rev: 19.3b0
|
15 |
+
hooks:
|
16 |
+
- id: black
|
17 |
+
args: [--config=black.toml]
|
black.toml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.black]
|
2 |
+
line-length = 88
|
3 |
+
target-version = ['py37']
|
4 |
+
include = '\.pyi?$'
|
5 |
+
exclude = '''
|
6 |
+
|
7 |
+
(
|
8 |
+
/(
|
9 |
+
\.eggs # exclude a few common directories in the
|
10 |
+
| \.git # root of the project
|
11 |
+
| \.hg
|
12 |
+
| \.mypy_cache
|
13 |
+
| \.tox
|
14 |
+
| \.venv
|
15 |
+
| _build
|
16 |
+
| buck-out
|
17 |
+
| build
|
18 |
+
| dist
|
19 |
+
)/
|
20 |
+
)
|
21 |
+
'''
|
requirements.txt
CHANGED
@@ -1,6 +1,78 @@
|
|
1 |
albumentations==0.4.3
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
numpy==1.16.4
|
|
|
4 |
opencv-python-headless==4.1.1.26
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
albumentations==0.4.3
|
2 |
+
altair==3.2.0
|
3 |
+
appdirs==1.4.3
|
4 |
+
argh==0.26.2
|
5 |
+
aspy.yaml==1.3.0
|
6 |
+
astor==0.8.0
|
7 |
+
attrs==19.3.0
|
8 |
+
base58==1.0.3
|
9 |
+
black==19.10b0
|
10 |
+
blinker==1.4
|
11 |
+
boto3==1.10.26
|
12 |
+
botocore==1.13.26
|
13 |
+
certifi==2019.9.11
|
14 |
+
cfgv==2.0.1
|
15 |
+
chardet==3.0.4
|
16 |
+
Click==7.0
|
17 |
+
cycler==0.10.0
|
18 |
+
decorator==4.4.1
|
19 |
+
docutils==0.15.2
|
20 |
+
entrypoints==0.3
|
21 |
+
enum-compat==0.0.3
|
22 |
+
flake8==3.7.9
|
23 |
+
future==0.18.2
|
24 |
+
identify==1.4.7
|
25 |
+
idna==2.8
|
26 |
+
imageio==2.6.1
|
27 |
+
imgaug==0.2.6
|
28 |
+
importlib-metadata==0.23
|
29 |
+
Jinja2==2.10.3
|
30 |
+
jmespath==0.9.4
|
31 |
+
json5==0.8.4
|
32 |
+
jsonschema==3.0.1
|
33 |
+
kiwisolver==1.1.0
|
34 |
+
MarkupSafe==1.1.1
|
35 |
+
matplotlib==3.1.2
|
36 |
+
mccabe==0.6.1
|
37 |
+
more-itertools==7.2.0
|
38 |
+
networkx==2.4
|
39 |
+
nodeenv==1.3.3
|
40 |
numpy==1.16.4
|
41 |
+
opencv-python==4.1.2.30
|
42 |
opencv-python-headless==4.1.1.26
|
43 |
+
packaging==19.2
|
44 |
+
pandas==0.25.3
|
45 |
+
pathspec==0.6.0
|
46 |
+
pathtools==0.1.2
|
47 |
+
Pillow==6.2.1
|
48 |
+
pluggy==0.13.1
|
49 |
+
pre-commit==1.20.0
|
50 |
+
protobuf==3.10.0
|
51 |
+
py==1.8.0
|
52 |
+
pycodestyle==2.5.0
|
53 |
+
pyflakes==2.1.1
|
54 |
+
pyparsing==2.4.5
|
55 |
+
pyrsistent==0.15.5
|
56 |
+
pytest==5.3.0
|
57 |
+
python-dateutil==2.8.0
|
58 |
+
pytz==2019.3
|
59 |
+
PyWavelets==1.1.1
|
60 |
+
PyYAML==5.1.2
|
61 |
+
regex==2019.11.1
|
62 |
+
requests==2.22.0
|
63 |
+
s3transfer==0.2.1
|
64 |
+
scikit-image==0.16.2
|
65 |
+
scipy==1.3.2
|
66 |
+
six==1.13.0
|
67 |
+
streamlit==0.50.2
|
68 |
+
toml==0.10.0
|
69 |
+
toolz==0.10.0
|
70 |
+
tornado==5.1.1
|
71 |
+
typed-ast==1.4.0
|
72 |
+
tzlocal==2.0.0
|
73 |
+
urllib3==1.25.7
|
74 |
+
validators==0.14.0
|
75 |
+
virtualenv==16.7.8
|
76 |
+
watchdog==0.9.0
|
77 |
+
wcwidth==0.1.7
|
78 |
+
zipp==0.6.0
|