File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11SHELL := /bin/bash
2- .PHONY : init-venv clean-venv clean install install-dev reinstall reinstall-dev
2+ .PHONY : init-venv clean-venv clean install install-dev reinstall reinstall-dev ruff check
33
44init-venv :
55 python3 -m venv venv && source ./venv/bin/activate
@@ -11,7 +11,8 @@ clean-venv:
1111 rm make_venv_to_uninstall.txt
1212
1313clean :
14- rm -rf dist/ build/ bittensor.egg-info/ .pytest_cache/ lib/
14+ @rm -rf dist/ build/ bittensor.egg-info/ .pytest_cache/ lib/ .mypy_cache .ruff_cache \
15+ $(shell find . -type d \( -name ".hypothesis" -o -name "__pycache__" \) )
1516
1617install : init-venv
1718 source ./venv/bin/activate && \
@@ -24,3 +25,14 @@ install-dev: init-venv
2425reinstall : clean clean-venv install
2526
2627reinstall-dev : clean clean-venv install-dev
28+
29+ ruff :
30+ @python -m ruff format bittensor
31+
32+ check : ruff
33+ @mypy --ignore-missing-imports bittensor/ --python-version=3.9
34+ @mypy --ignore-missing-imports bittensor/ --python-version=3.10
35+ @mypy --ignore-missing-imports bittensor/ --python-version=3.11
36+ @mypy --ignore-missing-imports bittensor/ --python-version=3.12
37+ @mypy --ignore-missing-imports bittensor/ --python-version=3.13
38+ @flake8 bittensor/ --count
You can’t perform that action at this time.
0 commit comments