Add yapf to Pipenv environment #6
@ -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:
|
||||
|
||||
|
@ -1 +1 @@
|
||||
from ki import models, commands, routes # noqa
|
||||
from ki import models, commands, routes # noqa
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user
Formating
gibt es nicht. Entsprechend dem Rest der DateiFormatierung
oderFormatieren
?Pass ich an.