Skip to content

Commit

Permalink
Fix scalingo config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux committed Jan 15, 2025
1 parent fed2c5d commit 62fbec4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12.8
28 changes: 6 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ifneq (,$(wildcard ./.env))
endif

# Aliases
PYTHON := .venv/bin/python
PYTHON := poetry run python
DJANGO_ADMIN := $(PYTHON) manage.py
PYTEST := $(PYTHON) -m pytest
PYTEST := poetry run pytest
DB_URL := postgres://qfdmo:qfdmo@localhost:6543/qfdmo# pragma: allowlist secret

# Makefile config
Expand All @@ -17,25 +17,15 @@ check:
@npm --version
@node --version

# Setup development environment
.PHONY: update-requirements
update-requirements:
$(PYTHON) -m pip install --no-deps -r requirements.txt -r dev-requirements.txt


.PHONY: init-venv
init-venv:
python -m venv .venv --prompt $(basename $(CURDIR)) --clear

.PHONY: init-dev
init-dev:
# git
git config blame.ignoreRevsFile .git-blame-ignore-revs
pre-commit install
# python
make init-venv
$(PYTHON) -m pip install pip-tools
$(PYTHON) -m pip install --no-deps -r requirements.txt -r dev-requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
poetry install --with dev,airflow
# javascript
npm install
npx playwright install --with-deps
Expand All @@ -49,8 +39,8 @@ init-dev:

.PHONY: fix
fix:
$(PYTHON) -m ruff check . --fix
$(PYTHON) -m black --exclude=.venv .
poetry run ruff check . --fix
poetry run black --exclude=.venv .


# Run development servers
Expand Down Expand Up @@ -111,12 +101,6 @@ restore-prod:
clear-cache:
$(DJANGO_ADMIN) clear_cache --all

# Dependencies management
.PHONY: pip-update
pip-update:
$(PYTHON) -m pip-compile dev-requirements.in --generate-hashes
$(PYTHON) -m pip-compile requirements.in --generate-hashes

.PHONY: npm-upgrade
npm-upgrade:
npx npm-upgrade
Expand Down
1 change: 0 additions & 1 deletion runtime.txt

This file was deleted.

0 comments on commit 62fbec4

Please sign in to comment.