Skip to content

Commit

Permalink
💎 style(pyproject): improved style, added easy command for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sladg committed Jan 3, 2023
1 parent e6236e4 commit c977063
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ build
node_modules/**
.vscode
.pytest_cache/

__pycache__
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ package-code:
start:
poetry run python ./imaginex-lambda/handler.py

test:
poetry run pytest

# Pack the dependencies into a zip file and include code as separate zip file.
package:
rm -rf build
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[tool.poetry]
name = "imaginex-lambda"
version = "0.2.6"
description = ""
description = "Image optimizer for processing NextJS image requests"
authors = ["Jan Soukup <jan@ssoukup.com>"]
readme = "README.md"
packages = [{ include = "imaginex-lambda" }]

[tool.poetry.dependencies]
python = "~3.8"
Expand Down

0 comments on commit c977063

Please sign in to comment.