Black
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -191,5 +191,3 @@ cython_debug/
|
|||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
#.idea/
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,3 +15,7 @@ repos:
|
|||||||
- id: poetry-lock
|
- id: poetry-lock
|
||||||
- id: poetry-export
|
- id: poetry-export
|
||||||
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
|
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
|
||||||
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 23.1.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.1.0'
|
__version__ = "0.1.0"
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ class Response(BaseModel):
|
|||||||
|
|
||||||
@app.post("/sleep", response_model=Response)
|
@app.post("/sleep", response_model=Response)
|
||||||
async def sleep() -> Response:
|
async def sleep() -> Response:
|
||||||
|
|
||||||
extron.sleep()
|
extron.sleep()
|
||||||
projector.power_off()
|
projector.power_off()
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ from projectorpi_web import __version__
|
|||||||
|
|
||||||
|
|
||||||
def test_version():
|
def test_version():
|
||||||
assert __version__ == '0.1.0'
|
assert __version__ == "0.1.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user