Browse Source

setup yapf (pep8 style)

Fabian Peter Hammerle 4 years ago
parent
commit
d8cf13e57b
3 changed files with 12 additions and 1 deletions
  1. 2 0
      .style.yapf
  2. 1 0
      Pipfile
  3. 9 1
      Pipfile.lock

+ 2 - 0
.style.yapf

@@ -0,0 +1,2 @@
+[style]
+based_on_style = pep8

+ 1 - 0
Pipfile

@@ -14,6 +14,7 @@ pytest = "<5"
 # >=2 for --cov-fail-under
 pytest-cov = "<3,>=2"
 pytest-timeout = "<2"
+yapf = "*"
 
 [requires]
 python_version = "3"

+ 9 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "ed452aa05ab9a248e3336339cf86985aa5200f817940a18f7fe2d0bda30d29bf"
+            "sha256": "4d36755dcb7b9b978cd9245d8344b9982f3ef6f4dfd998b195d2e85a97ea0953"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -228,6 +228,14 @@
             ],
             "version": "==1.11.2"
         },
+        "yapf": {
+            "hashes": [
+                "sha256:34f6f80c446dcb2c44bd644c4037a2024b6645e293a4c9c4521983dd0bb247a1",
+                "sha256:613deba14233623ff3432d9d5032631b5f600be97b39f66932cbe67648bfa8ea"
+            ],
+            "index": "pypi",
+            "version": "==0.27.0"
+        },
         "zipp": {
             "hashes": [
                 "sha256:8c1019c6aad13642199fbe458275ad6a84907634cc9f0989877ccc4a2840139d",