Skip to content

Commit e149df9

Browse files
authored
Merge pull request #3058 from opentensor/feat/roman/update-make-file
update make file
2 parents 4278a3d + 734be41 commit e149df9

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SHELL := /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

44
init-venv:
55
python3 -m venv venv && source ./venv/bin/activate
@@ -11,7 +11,8 @@ clean-venv:
1111
rm make_venv_to_uninstall.txt
1212

1313
clean:
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

1617
install: init-venv
1718
source ./venv/bin/activate && \
@@ -24,3 +25,14 @@ install-dev: init-venv
2425
reinstall: clean clean-venv install
2526

2627
reinstall-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

0 commit comments

Comments
 (0)