Merge pull request #76 from grillazz/39-add-pre-commit

update Makefile and README.md for local dev with poetry
This commit is contained in:
Jakub Miazek 2023-03-07 12:56:15 +01:00 committed by GitHub
commit 6c21f42b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -38,7 +38,7 @@ safety: ## Check project and dependencies with safety https://github.com/pyupio/
.PHONY: py-upgrade
py-upgrade: ## Upgrade project py files with pyupgrade library for python version 3.10
pyupgrade --py310-plus `find app -name "*.py"`
pyupgrade --py311-plus `find app -name "*.py"`
.PHONY: lint
lint: ## Lint project code.

View File

@ -56,3 +56,13 @@ Hope you enjoy it.
- 3 OCT 2022 poetry added to project
- 12 NOV 2022 ruff implemented to project as linting tool
- 14 FEB 2023 bump project to Python 3.11
### Local development with poetry
```shell
pyenv install 3.11 && pyenv local 3.11
```
```shell
poetry install
```