diff --git a/.gitignore b/.gitignore index 81034d1..ff1d379 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ .LSOverride # Icon must end with two \r -Icon +Icon # Thumbnails ._* @@ -191,5 +191,3 @@ cython_debug/ # 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. #.idea/ - - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6084104..ed8ae34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,7 @@ repos: - id: poetry-lock - id: poetry-export args: ["-f", "requirements.txt", "-o", "requirements.txt"] + - repo: https://github.com/psf/black + rev: 23.1.0 + hooks: + - id: black diff --git a/projectorpi_web/__init__.py b/projectorpi_web/__init__.py index b794fd4..3dc1f76 100644 --- a/projectorpi_web/__init__.py +++ b/projectorpi_web/__init__.py @@ -1 +1 @@ -__version__ = '0.1.0' +__version__ = "0.1.0" diff --git a/projectorpi_web/app.py b/projectorpi_web/app.py index c950163..f996cd0 100644 --- a/projectorpi_web/app.py +++ b/projectorpi_web/app.py @@ -16,7 +16,6 @@ class Response(BaseModel): @app.post("/sleep", response_model=Response) async def sleep() -> Response: - extron.sleep() projector.power_off() diff --git a/tests/test_projectorpi_web.py b/tests/test_projectorpi_web.py index 78c5706..fe8902e 100644 --- a/tests/test_projectorpi_web.py +++ b/tests/test_projectorpi_web.py @@ -2,4 +2,4 @@ from projectorpi_web import __version__ def test_version(): - assert __version__ == '0.1.0' + assert __version__ == "0.1.0"