Add yapf to Pipenv environment #6

Merged
weeman merged 3 commits from add-yapf into main 2021-06-21 17:38:06 +02:00
3 changed files with 10 additions and 9 deletions
Showing only changes of commit cbf3002b93 - Show all commits

View File

@ -43,7 +43,7 @@ python -m unittest discover ki
flake8 flake8
``` ```
### Formating ### Formatierung
Um ein einheitliches Quellcode-Erlebnis zu haben, kann der Code mit yapf neu formatiert werden: Um ein einheitliches Quellcode-Erlebnis zu haben, kann der Code mit yapf neu formatiert werden:

View File

@ -1 +1 @@
from ki import models, commands, routes # noqa from ki import models, commands, routes # noqa

View File

@ -22,13 +22,14 @@ class TestSkillsEndpoint(unittest.TestCase):
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertEqual( self.assertEqual(
{ {
"skills": [ "skills": [{
{"id": 1, "name": "PHP"}, "id": 1,
{"id": 3, "name": "Python"} "name": "PHP"
] }, {
}, "id": 3,
response.json "name": "Python"
) }]
}, response.json)
if __name__ == "main": if __name__ == "main":