<commit_before># Copyright 2013 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

all: test

clean:
	@find . -name "*.pyc" -delete

doc_dependencies:
	@pip install -r doc-requirements.txt --use-mirrors

dependencies:
	@pip install -r test-requirements.txt --use-mirrors

doc: doc_dependencies
	@cd docs && make clean && make html

release:
	@sed -ic -e s/`cat VERSION`/$(version)/ setup.py docs/conf.py splinter/__init__.py
	@echo $(version) > VERSION
	@git add setup.py docs/conf.py VERSION splinter/__init__.py
	@git commit -m "setup: bump to $(version)"
	@git tag $(version)
	@git push --tags
	@git push origin master
	@python setup.py sdist upload

which = 'tests'

test: dependencies clean
	@echo "Running all tests..."
	./run_tests.py -w $(which)

format: clean dependencies
	@flake8 --max-line-length 110 .

coverage: dependencies clean
	@echo "Running all tests with coverage..."
	@coverage run run_tests.py -w $(which) && coverage report<commit_msg>flake: ignoring docs dir.<commit_after># Copyright 2013 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

all: test

clean:
	@find . -name "*.pyc" -delete

doc_dependencies:
	@pip install -r doc-requirements.txt --use-mirrors

dependencies:
	@pip install -r test-requirements.txt --use-mirrors

doc: doc_dependencies
	@cd docs && make clean && make html

release:
	@sed -ic -e s/`cat VERSION`/$(version)/ setup.py docs/conf.py splinter/__init__.py
	@echo $(version) > VERSION
	@git add setup.py docs/conf.py VERSION splinter/__init__.py
	@git commit -m "setup: bump to $(version)"
	@git tag $(version)
	@git push --tags
	@git push origin master
	@python setup.py sdist upload

which = 'tests'

test: dependencies clean
	@echo "Running all tests..."
	./run_tests.py -w $(which)

format: clean dependencies
	@flake8 --max-line-length 110 splinter

coverage: dependencies clean
	@echo "Running all tests with coverage..."
	@coverage run run_tests.py -w $(which) && coverage report
{'fraction_non_alphanumeric': 0.12033978291647003, 'fraction_numerical': 0.0075507314771118455, 'mean_word_length': 3.8181818181818183, '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': '4052478', 'n_tokens_mistral': 720, 'n_tokens_neox': 694, 'n_words': 257}