-
Install dependencies On the
rootfolder, run:make install -
subir local On the
rootfolder, run:python3 local.py
-
install poetry
export PATH=$PATH:$HOME/.poetry/bin -
creates a virtual environment
poetry env use 3.8 -
install dependencies
poetry install -
install plugin serverless-python-requirements (the plugin will bundle your python dependencies specified in your requirements.txt when you run sls deploy)
npm install -
create requirements file for deploy
poetry export -f requirements.txt -o requirements.txt -
configure your credentials and config aws files in .aws for deploy
-
deploy
sls deploy -
to deactivate virtual environment
deactivate
Lint is a static code analysis tool used to flag programming errors, bugs, stylistic errors.
To execute validations: poetry run flake8 src/ tests/
To change the validation rules, just edit the .flake8 file. For more details
see: https://flake8.pycqa.org/en/latest/user/violations.html
Automatic formats the code following the PEP8 rules and respecting the config in .flake8 file.
To format all code: poetry run autopep8 --in-place --recursive --aggressive --aggressive src/ tests/