<commit_before>version := $(shell python -c 'from geopy import __version__; print(__version__)')

.PHONY: venv
venv:
	[ -d .venv ] || python3 -m venv .venv
	# Activate: `. .venv/bin/activate`

.PHONY: develop
develop:
	pip install wheel
	pip install -e '.[dev]'

.PHONY: lint lint-flake8 lint-isort
lint-flake8:
	flake8 geopy test *.py
lint-isort:
	isort --check-only geopy test *.py
lint: lint-flake8 lint-isort

.PHONY: format
format:
	isort geopy test *.py

.PHONY: test-local
test-local:
	@# Run tests without Internet. These are fast and help to avoid
	@# spending geocoders quota for test runs which would fail anyway.
	python -m pytest --skip-tests-requiring-internet

.PHONY: test
test: test-local
	# Run tests with Internet:
	coverage run -m py.test
	coverage report

.PHONY: readme_check
readme_check:
	./setup.py check --restructuredtext --strict

.PHONY: rst_check
rst_check:
	make readme_check
	# Doesn't generate any output but prints out errors and warnings.
	make -C docs dummy

.PHONY: clean
clean:
	find . -name "*.pyc" -print0 | xargs -0 rm -f
	rm -Rf dist
	rm -Rf *.egg-info<commit_msg>Makefile: fix `make test` for the modern pytest<commit_after>version := $(shell python -c 'from geopy import __version__; print(__version__)')

.PHONY: venv
venv:
	[ -d .venv ] || python3 -m venv .venv
	# Activate: `. .venv/bin/activate`

.PHONY: develop
develop:
	pip install wheel
	pip install -e '.[dev]'

.PHONY: lint lint-flake8 lint-isort
lint-flake8:
	flake8 geopy test *.py
lint-isort:
	isort --check-only geopy test *.py
lint: lint-flake8 lint-isort

.PHONY: format
format:
	isort geopy test *.py

.PHONY: test-local
test-local:
	@# Run tests without Internet. These are fast and help to avoid
	@# spending geocoders quota for test runs which would fail anyway.
	python -m pytest --skip-tests-requiring-internet

.PHONY: test
test: test-local
	# Run tests with Internet:
	coverage run -m pytest
	coverage report

.PHONY: readme_check
readme_check:
	./setup.py check --restructuredtext --strict

.PHONY: rst_check
rst_check:
	make readme_check
	# Doesn't generate any output but prints out errors and warnings.
	make -C docs dummy

.PHONY: clean
clean:
	find . -name "*.pyc" -print0 | xargs -0 rm -f
	rm -Rf dist
	rm -Rf *.egg-info
{'fraction_non_alphanumeric': 0.11224944320712694, 'fraction_numerical': 0.0062360801781737195, 'mean_word_length': 3.5373737373737373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1228077', 'n_tokens_mistral': 882, 'n_tokens_neox': 859, 'n_words': 286}