Browse Source

add pre-commit, upgrade pip-tools

Son NK 4 years ago
parent
commit
10205e3731
2 changed files with 16 additions and 6 deletions
  1. 2 1
      requirements.in
  2. 14 5
      requirements.txt

+ 2 - 1
requirements.in

@@ -45,4 +45,5 @@ memory_profiler
 gevent
 aiocontextvars
 aiospamc
-black
+black
+pre-commit

+ 14 - 5
requirements.txt

@@ -10,7 +10,7 @@ aiosmtpd==1.2             # via -r requirements.in
 aiosmtplib==1.0.6         # via yacron
 aiospamc==0.6.1           # via -r requirements.in
 alembic==1.0.10           # via flask-migrate
-appdirs==1.4.4            # via black
+appdirs==1.4.4            # via black, virtualenv
 appnope==0.1.0            # via ipython
 arrow==0.14.2             # via -r requirements.in
 asn1crypto==0.24.0        # via cryptography
@@ -28,16 +28,19 @@ cachetools==4.0.0         # via google-auth
 cbor2==5.1.0              # via webauthn
 certifi==2019.11.28       # via aiospamc, requests, sentry-sdk
 cffi==1.12.3              # via bcrypt, cryptography
+cfgv==3.2.0               # via pre-commit
 chardet==3.0.4            # via aiohttp, requests
 click==7.1.2              # via black, flask, pip-tools
 coloredlogs==10.0         # via -r requirements.in
 crontab==0.22.5           # via yacron
 cryptography==2.7         # via jwcrypto, pyopenssl, webauthn
 decorator==4.4.0          # via ipython, traitlets
+distlib==0.3.1            # via virtualenv
 dkimpy==1.0.1             # via -r requirements.in
 dnspython==1.16.0         # via -r requirements.in, dkimpy
 docutils==0.14            # via botocore
 facebook-sdk==3.1.0       # via -r requirements.in
+filelock==3.0.12          # via virtualenv
 flask-admin==1.5.3        # via -r requirements.in
 flask-cors==3.0.8         # via -r requirements.in
 flask-debugtoolbar==0.10.1  # via -r requirements.in
@@ -58,8 +61,9 @@ greenlet==0.4.16          # via gevent
 gunicorn==19.9.0          # via -r requirements.in
 httplib2==0.17.0          # via google-api-python-client, google-auth-httplib2
 humanfriendly==4.18       # via coloredlogs
+identify==1.5.0           # via pre-commit
 idna==2.8                 # via requests, yarl
-importlib-metadata==0.18  # via pluggy, pytest
+importlib-metadata==0.18  # via pluggy, pre-commit, pytest, virtualenv
 ipython-genutils==0.2.0   # via traitlets
 ipython==7.5.0            # via -r requirements.in
 itsdangerous==1.1.0       # via flask, flask-debugtoolbar
@@ -74,6 +78,7 @@ memory-profiler==0.57.0   # via -r requirements.in
 more-itertools==7.0.0     # via pytest
 multidict==4.5.2          # via aiohttp, yarl
 mypy-extensions==0.4.3    # via black
+nodeenv==1.5.0            # via pre-commit
 oauthlib==3.0.2           # via requests-oauthlib
 packaging==19.0           # via pytest
 parso==0.4.0              # via jedi
@@ -81,8 +86,9 @@ pathspec==0.8.0           # via black
 pexpect==4.7.0            # via ipython
 phpserialize==1.3         # via -r requirements.in
 pickleshare==0.7.5        # via ipython
-pip-tools==3.8.0          # via -r requirements.in
+pip-tools==5.3.1          # via -r requirements.in
 pluggy==0.12.0            # via pytest
+pre-commit==2.7.1         # via -r requirements.in
 prompt-toolkit==2.0.9     # via ipython
 psutil==5.7.0             # via memory-profiler
 psycopg2-binary==2.8.2    # via -r requirements.in
@@ -102,6 +108,7 @@ python-dateutil==2.8.0    # via alembic, arrow, botocore, strictyaml
 python-dotenv==0.10.3     # via -r requirements.in
 python-editor==1.0.4      # via alembic
 python-gnupg==0.4.5       # via -r requirements.in
+pyyaml==5.3.1             # via pre-commit
 raven-aiohttp==0.7.0      # via yacron
 raven==6.10.0             # via raven-aiohttp, yacron
 regex==2020.7.14          # via black
@@ -112,17 +119,18 @@ ruamel.yaml==0.15.97      # via strictyaml
 s3transfer==0.2.1         # via boto3
 sentry-sdk==0.14.1        # via -r requirements.in
 simplejson==3.17.0        # via flask-profiler
-six==1.12.0               # via bcrypt, cryptography, flask-cors, flask-limiter, google-api-python-client, google-auth, limits, packaging, pip-tools, prompt-toolkit, pyopenssl, pytest, python-dateutil, sqlalchemy-utils, traitlets, webauthn
+six==1.12.0               # via bcrypt, cryptography, flask-cors, flask-limiter, google-api-python-client, google-auth, limits, packaging, pip-tools, prompt-toolkit, pyopenssl, pytest, python-dateutil, sqlalchemy-utils, traitlets, virtualenv, webauthn
 sqlalchemy-utils==0.36.1  # via -r requirements.in
 sqlalchemy==1.3.19        # via alembic, flask-sqlalchemy, sqlalchemy-utils
 strictyaml==1.0.2         # via yacron
-toml==0.10.1              # via black
+toml==0.10.1              # via black, pre-commit
 traitlets==4.3.2          # via ipython
 typed-ast==1.4.1          # via black
 typing-extensions==3.7.4.3  # via black
 unidecode==1.0.23         # via -r requirements.in
 uritemplate==3.0.1        # via google-api-python-client
 urllib3==1.25.3           # via botocore, requests, sentry-sdk
+virtualenv==20.0.31       # via pre-commit
 watchtower==0.6.0         # via -r requirements.in
 wcwidth==0.1.7            # via prompt-toolkit, pytest
 webauthn==0.4.7           # via -r requirements.in
@@ -135,4 +143,5 @@ zope.event==4.4           # via gevent
 zope.interface==5.1.0     # via gevent
 
 # The following packages are considered to be unsafe in a requirements file:
+# pip
 # setuptools