Skip to content

Commit

Permalink
chore(deps)!: minimum python version 3.10
Browse files Browse the repository at this point in the history
BREAKING CHANGE: removed support for python 3.8 and 3.9
  • Loading branch information
Yelinz authored and czosel committed Jul 17, 2024
1 parent 7829a2c commit 8ef1733
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 194 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"
cache: "poetry"

- name: Install dependencies
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"
cache: "poetry"
- name: Install dependencies
run: poetry install --all-extras
Expand Down Expand Up @@ -71,8 +71,6 @@ jobs:
fail-fast: false
matrix:
version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k 1,1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

start: ## Start the development server
@docker-compose up -d --build
@docker compose up -d --build

test: ## Test the project
docker-compose exec document-merge-service poetry run sh -c "ruff format --diff --fix . && ruff check --diff . && mypy document_merge_service && pytest --no-cov-on-fail --cov --create-db"
@docker compose exec document-merge-service poetry run sh -c "ruff format --diff --fix . && ruff check --diff . && mypy document_merge_service && pytest --no-cov-on-fail --cov --create-db"

shell: ## Shell into document merge service
@docker-compose exec document-merge-service poetry shell
@docker compose exec document-merge-service poetry shell

format: ## Format python code with ruff check
@docker-compose exec document-merge-service poetry run ruff format --diff .
@docker compose exec document-merge-service poetry run ruff format --diff .

dmypy: ## Run mypy locally (starts a deamon for performance)
dmypy run document_merge_service
Loading

0 comments on commit 8ef1733

Please sign in to comment.