Skip to content

Commit

Permalink
Merge pull request #49 from umluizlima/update-makefile
Browse files Browse the repository at this point in the history
Update makefile
  • Loading branch information
umluizlima authored Dec 1, 2021
2 parents 5fa8160 + 17e702f commit d952874
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
rev: stable
hooks:
- id: black
language_version: python3.8
language_version: python3.10
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: xenial

language: python
python:
- 3.8.1
- 3.10-dev
install:
- make install
script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A service to send email messages.
## Development

### Requirements
- [Python 3.8.1](https://realpython.com/intro-to-pyenv/)
- [Python 3.10.0](https://realpython.com/intro-to-pyenv/)
- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)

Expand Down
8 changes: 8 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
.PHONY: environment
environment:
pyenv install -s 3.10.0
pyenv uninstall --force email-sender
pyenv virtualenv 3.10.0 --force email-sender
pyenv local email-sender

.PHONY: install
install:
pip freeze | xargs -r pip uninstall -y && \
pip install -r requirements-dev.txt && \
pre-commit install

Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
black==19.10b0
flake8==3.8.1
isort==5.6.4
pre-commit==2.4.0
pre-commit==2.15.0
pytest-cov==2.8.1
pytest==5.4.2
pytest==6.2.5
requests==2.23.0
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8.1
python-3.10.0

0 comments on commit d952874

Please sign in to comment.