From cbf3002b933d27ca1f09720ee141f0457042792c Mon Sep 17 00:00:00 2001 From: Frank Lanitz Date: Mon, 21 Jun 2021 16:06:58 +0200 Subject: [PATCH] Reformat source code --- README.md | 2 +- ki/module.py | 2 +- ki/test/test_skills_endpoint.py | 15 ++++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f1f7af8..f902575 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ python -m unittest discover ki flake8 ``` -### Formating +### Formatierung Um ein einheitliches Quellcode-Erlebnis zu haben, kann der Code mit yapf neu formatiert werden: diff --git a/ki/module.py b/ki/module.py index da8bc46..79eeb96 100644 --- a/ki/module.py +++ b/ki/module.py @@ -1 +1 @@ -from ki import models, commands, routes # noqa +from ki import models, commands, routes # noqa diff --git a/ki/test/test_skills_endpoint.py b/ki/test/test_skills_endpoint.py index 0603102..80cfae6 100644 --- a/ki/test/test_skills_endpoint.py +++ b/ki/test/test_skills_endpoint.py @@ -22,13 +22,14 @@ class TestSkillsEndpoint(unittest.TestCase): self.assertEqual(response.status_code, 200) self.assertEqual( { - "skills": [ - {"id": 1, "name": "PHP"}, - {"id": 3, "name": "Python"} - ] - }, - response.json - ) + "skills": [{ + "id": 1, + "name": "PHP" + }, { + "id": 3, + "name": "Python" + }] + }, response.json) if __name__ == "main":