<commit_before>PROJECT = luftqualitaet_sachsen
PORT ?= 8000
ENV ?= dev
PERIOD ?= 24H

WHERE = $(shell uname -a)
ifeq ($(CI),true)
PYTHON_PATH = $(BUILD_DIR)/$(PROJECT)
else
PYTHON_PATH = $(shell pwd)/$(PROJECT)
endif

.PHONY: help install install-dev install-test install-osx create-db \
			info isort isort-check test coverage coverage-html migrate \
			runserver shell docs clean clean-coverage clean-pyc fetch

help:
	@echo "Please use 'make <target>' where <target> is one of"
	@echo "  install            to install/update all packages required for production"
	@echo "  install-dev        to install/update all packages required for development (includes production)"
	@echo "  install-test       to install/update all packages required for testing (includes production)"
	@echo "  install-osx        to install/update the packages only required for OS X"
	@echo "  create-db          to create a new PostgreSQL user and database"
	@echo "  isort              to run isort on the whole project"
	@echo "  isort-check        to check the whole project with isort"
	@echo "  test               to run the tests with pytest"
	@echo "  coverage           to generate a coverage report"
	@echo "  coverage-html      to generate and open a HTML coverage report"
	@echo "  migrate            to synchronize Django's database state with the current set of models and migrations"
	@echo "  runserver          to start Django's development Web server"
	@echo "  shell              to start a Python interactive interpreter"
	@echo "  docs               to build and open the project documentation as HTML"
	@echo "  clean              to remove all artifacts"
	@echo "  clean-coverage     to remove coverage artifacts"
	@echo "  clean-pyc          to remove Python file artifacts"
	@echo "  fetch              to fetch live data"

install:
	pip install -U --no-deps -r requirements/prod.txt

install-dev:
	pip install -U --no-deps -r requirements/dev.txt

install-test:
	pip install -U --no-deps -r requirements/test.txt

install-osx:
	pip install -U --no-deps -r requirements/osx.txt

create-db:
	createuser -d -e -P luftqualitaet_sachsen
	createdb -U luftqualitaet_sachsen luftqualitaet_sachsen

info:
	@echo "Testing on $(WHERE)"

isort:
	isort --recursive $(PROJECT)

isort-check:
	isort --check-only --recursive $(PROJECT)<commit_msg>create-db target works now<commit_after>PROJECT = luftqualitaet_sachsen
PORT ?= 8000
ENV ?= dev
PERIOD ?= 24H

WHERE = $(shell uname -a)
ifeq ($(CI),true)
PYTHON_PATH = $(BUILD_DIR)/$(PROJECT)
else
PYTHON_PATH = $(shell pwd)/$(PROJECT)
endif

.PHONY: help install install-dev install-test install-osx create-db \
			info isort isort-check test coverage coverage-html migrate \
			runserver shell docs clean clean-coverage clean-pyc fetch

help:
	@echo "Please use 'make <target>' where <target> is one of"
	@echo "  install            to install/update all packages required for production"
	@echo "  install-dev        to install/update all packages required for development (includes production)"
	@echo "  install-test       to install/update all packages required for testing (includes production)"
	@echo "  install-osx        to install/update the packages only required for OS X"
	@echo "  create-db          to create a new PostgreSQL user and database"
	@echo "  isort              to run isort on the whole project"
	@echo "  isort-check        to check the whole project with isort"
	@echo "  test               to run the tests with pytest"
	@echo "  coverage           to generate a coverage report"
	@echo "  coverage-html      to generate and open a HTML coverage report"
	@echo "  migrate            to synchronize Django's database state with the current set of models and migrations"
	@echo "  runserver          to start Django's development Web server"
	@echo "  shell              to start a Python interactive interpreter"
	@echo "  docs               to build and open the project documentation as HTML"
	@echo "  clean              to remove all artifacts"
	@echo "  clean-coverage     to remove coverage artifacts"
	@echo "  clean-pyc          to remove Python file artifacts"
	@echo "  fetch              to fetch live data"

install:
	pip install -U --no-deps -r requirements/prod.txt

install-dev:
	pip install -U --no-deps -r requirements/dev.txt

install-test:
	pip install -U --no-deps -r requirements/test.txt

install-osx:
	pip install -U --no-deps -r requirements/osx.txt

create-db:
	createuser -d -e -P luftqualitaet_sachsen
	createdb -h localhost -U luftqualitaet_sachsen luftqualitaet_sachsen

info:
	@echo "Testing on $(WHERE)"

isort:
	isort --recursive $(PROJECT)

isort-check:
	isort --check-only --recursive $(PROJECT)
{'fraction_non_alphanumeric': 0.08347529812606473, 'fraction_numerical': 0.002555366269165247, 'mean_word_length': 2.881818181818182, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3964603', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1413, 'n_words': 538}