Skip to content
Permalink
Browse files

run black as pre-commit hook (wip)

  • Loading branch information...
Amirouche
Amirouche committed Sep 2, 2018
1 parent 698e7fa commit 3c4f2945e78d58653882558bd0f3e3bf9ad98d64
Showing with 81 additions and 3 deletions.
  1. +6 −0 .pre-commit-config.yaml
  2. +1 −0 Makefile
  3. +1 −0 Pipfile
  4. +73 −1 Pipfile.lock
  5. +0 −2 pre-commit
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black.git
rev: stable
hooks:
- id: black
language_version: python3.6
@@ -10,6 +10,7 @@ install: ## Prepare the host sytem for development
pip install pipenv --upgrade
pipenv install --dev --skip-lock
cd src && pipenv run python found_build.py
# pipenv run pre-commit install

check: ## Run tests
pipenv run py.test --capture=no src/tests.py
@@ -14,6 +14,7 @@ pytest-cov = "*"
codecov = "*"
jedi = "*"
pytest-asyncio = "*"
pre-commit = "*"

[packages]
aiohttp = "*"
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "fc9827f054191a3bce7e0e9c8fc533ffff3b4b5737609d7f179f9627db2d5b3c"
"sha256": "864aec92b9e462f9e1dfb11817f437e440675e2e071f504ea93f27083284d858"
},
"pipfile-spec": 6,
"requires": {},
@@ -378,6 +378,13 @@
],
"version": "==0.7.11"
},
"aspy.yaml": {
"hashes": [
"sha256:04d26279513618f1024e1aba46471db870b3b33aef204c2d09bcf93bea9ba13f",
"sha256:0a77e23fafe7b242068ffc0252cee130d3e509040908fc678d9d1060e7494baa"
],
"version": "==1.1.1"
},
"async-timeout": {
"hashes": [
"sha256:474d4bc64cee20603e225eb1ece15e248962958b45a3648a9f5cc29e827a610c",
@@ -415,13 +422,27 @@
],
"version": "==0.1.0"
},
"cached-property": {
"hashes": [
"sha256:630fdbf0f4ac7d371aa866016eba1c3ac43e9032246748d4994e67cb05f99bc4",
"sha256:f1f9028757dc40b4cb0fd2234bd7b61a302d7b84c683cb8c2c529238a24b8938"
],
"version": "==1.4.3"
},
"certifi": {
"hashes": [
"sha256:376690d6f16d32f9d1fe8932551d80b23e9d393a8578c5633a2ed39a64861638",
"sha256:456048c7e371c089d0a77a5212fb37a2c2dce1e24146e3b7e0261736aaeaa22a"
],
"version": "==2018.8.24"
},
"cfgv": {
"hashes": [
"sha256:73f48a752bd7aab103c4b882d6596c6360b7aa63b34073dd2c35c7b4b8f93010",
"sha256:d1791caa9ff5c0c7bce80e7ecc1921752a2eb7c2463a08ed9b6c96b85a2f75aa"
],
"version": "==1.1.0"
},
"chardet": {
"hashes": [
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
@@ -511,6 +532,13 @@
"index": "pypi",
"version": "==3.5.0"
},
"identify": {
"hashes": [
"sha256:49845e70fc6b1ec3694ab930a2c558912d7de24548eebcd448f65567dc757c43",
"sha256:68daab16a3db364fa204591f97dc40bfffd1a7739f27788a4895b4d8fd3516e5"
],
"version": "==1.1.4"
},
"idna": {
"hashes": [
"sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e",
@@ -617,6 +645,12 @@
"markers": "python_version >= '3.4.1'",
"version": "==4.3.1"
},
"nodeenv": {
"hashes": [
"sha256:aa040ab5189bae17d272175609010be6c5b589ec4b8dbd832cc50c9e9cb7496f"
],
"version": "==1.3.2"
},
"packaging": {
"hashes": [
"sha256:e9215d2d2535d3ae866c3d6efc77d5b24a0192cce0ff20e42896cc0664f889c0",
@@ -654,6 +688,14 @@
"markers": "python_version != '3.0.*' and python_version >= '2.7' and python_version != '3.2.*' and python_version != '3.3.*' and python_version != '3.1.*'",
"version": "==0.7.1"
},
"pre-commit": {
"hashes": [
"sha256:c1472b0d73e27a5697a477f77a4973c708da4fc433cc89648e8612c8cd623b87",
"sha256:ec206de6fbcbd9381ff3169f9975571fb2efa99794c328518a5f0c06ae0b49c5"
],
"index": "pypi",
"version": "==1.10.5"
},
"prompt-toolkit": {
"hashes": [
"sha256:1df952620eccb399c53ebb359cc7d9a8d3a9538cb34c5a1344bdbeb29fbcc381",
@@ -736,6 +778,22 @@
],
"version": "==2018.5"
},
"pyyaml": {
"hashes": [
"sha256:3d7da3009c0f3e783b2c873687652d83b1bbfd5c88e9813fb7e5b03c0dd3108b",
"sha256:3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf",
"sha256:40c71b8e076d0550b2e6380bada1f1cd1017b882f7e16f09a65be98e017f211a",
"sha256:558dd60b890ba8fd982e05941927a3911dc409a63dcb8b634feaa0cda69330d3",
"sha256:a7c28b45d9f99102fa092bb213aa12e0aaf9a6a1f5e395d36166639c1f96c3a1",
"sha256:aa7dd4a6a427aed7df6fb7f08a580d68d9b118d90310374716ae90b710280af1",
"sha256:bc558586e6045763782014934bfaf39d48b8ae85a2713117d16c39864085c613",
"sha256:d46d7982b62e0729ad0175a9bc7e10a566fc07b224d2c79fafb5e032727eaa04",
"sha256:d5eef459e30b09f5a098b9cea68bebfeb268697f78d647bd255a085371ac7f3f",
"sha256:e01d3203230e1786cd91ccfdc8f8454c8069c91bee3962ad93b87a4b2860f537",
"sha256:e170a9e6fcfd19021dd29845af83bb79236068bf5fd4df3327c1be18182b2531"
],
"version": "==3.13"
},
"requests": {
"hashes": [
"sha256:63b52e3c866428a224f97cab011de738c36aec0185aa91cfacd418b5d58911d1",
@@ -786,6 +844,12 @@
"markers": "python_version >= '2.7' and python_version != '3.1.*' and python_version != '3.2.*' and python_version != '3.3.*' and python_version != '3.0.*'",
"version": "==1.1.0"
},
"toml": {
"hashes": [
"sha256:8e86bd6ce8cc11b9620cb637466453d94f5d57ad86f17e98a98d1f73e3baab2d"
],
"version": "==0.9.4"
},
"traitlets": {
"hashes": [
"sha256:9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835",
@@ -801,6 +865,14 @@
"markers": "python_version != '3.1.*' and python_version != '3.2.*' and python_version != '3.0.*' and python_version != '3.3.*' and python_version < '4' and python_version >= '2.6'",
"version": "==1.23"
},
"virtualenv": {
"hashes": [
"sha256:2ce32cd126117ce2c539f0134eb89de91a8413a29baac49cbab3eb50e2026669",
"sha256:ca07b4c0b54e14a91af9f34d0919790b016923d157afda5efdde55c96718f752"
],
"markers": "python_version != '3.1.*' and python_version != '3.2.*' and python_version != '3.0.*' and python_version >= '2.7'",
"version": "==16.0.0"
},
"watchgod": {
"hashes": [
"sha256:b491f816fe9e69d8164cbe569596ccf855339ff773d46d7aad2b6ef44f778e46",

This file was deleted.

Oops, something went wrong.

0 comments on commit 3c4f294

Please sign in to comment.
You can’t perform that action at this time.