<commit_before>all: check-style test

uninstall:
	pip freeze | grep -v "^-e" | xargs pip uninstall -y

install:
	pip install --upgrade pip
	pip install --editable . --upgrade
	pip install --editable .[test] --upgrade

clean:
	rm -rf build dist
	find . -name '*.mo' -exec rm \{\} \;
	find . -name '*.pyc' -exec rm \{\} \;

check-syntax-errors:
	python -m compileall -q .

check-style:
	@# Do not analyse .gitignored files.
	@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
	flake8 `git ls-files | grep "\.py$$"`

test: clean check-syntax-errors
	nosetests openfisca_france_data/tests --ignore-files='(test_calibration.py|test_inflation.py|test_eipp.py|test_surveys.py|test_simulation.py|test_pivot_table.py|test_aggregates.py|test_af.py|test_al.py|test_impot_revenu.py)' --exclude-dir=openfisca_france_data/tests/erfs_fpr --exe --with-doctest

test-local: clean check-syntax-errors
	nosetests openfisca_france_data/tests --ignore-files='(test_calibration.py|test_inflation.py|test_eipp.py|test_surveys.py|test_simulation.py|test_pivot_table.py|test_aggregates.py|test_af.py|test_al.py|test_impot_revenu.py)' --exe --with-doctest

archive: clean
	git archive HEAD --format=zip > archive.zip

ctags:
	ctags --recurse=yes .
<commit_msg>Add format-style command to Makefile<commit_after>all: check-style test

uninstall:
	pip freeze | grep -v "^-e" | xargs pip uninstall -y

install:
	pip install --upgrade pip
	pip install --editable . --upgrade
	pip install --editable .[test] --upgrade

clean:
	rm -rf build dist
	find . -name '*.mo' -exec rm \{\} \;
	find . -name '*.pyc' -exec rm \{\} \;

check-syntax-errors:
	python -m compileall -q .

check-style:
	@# Do not analyse .gitignored files.
	@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
	flake8 `git ls-files | grep "\.py$$"`

format-style:
	@# Do not analyse .gitignored files.
	@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
	autopep8 `git ls-files | grep "\.py$$"`

test: clean check-syntax-errors
	nosetests openfisca_france_data/tests --ignore-files='(test_calibration.py|test_inflation.py|test_eipp.py|test_surveys.py|test_simulation.py|test_pivot_table.py|test_aggregates.py|test_af.py|test_al.py|test_impot_revenu.py)' --exclude-dir=openfisca_france_data/tests/erfs_fpr --exe --with-doctest

test-local: clean check-syntax-errors
	nosetests openfisca_france_data/tests --ignore-files='(test_calibration.py|test_inflation.py|test_eipp.py|test_surveys.py|test_simulation.py|test_pivot_table.py|test_aggregates.py|test_af.py|test_al.py|test_impot_revenu.py)' --exe --with-doctest

archive: clean
	git archive HEAD --format=zip > archive.zip

ctags:
	ctags --recurse=yes .

{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.008762322015334063, 'mean_word_length': 4.320388349514563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3411402', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1057, 'n_words': 203}