-
-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 778 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
info:
@echo "\n=== Available commands ===\n"
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-15s\033[0m %s\n", $$1, $$2}'
init: ## Initialize the project
@make do-create-venv
@make do-install-packages
do-create-venv:
@python3 -m venv .venv
do-install-packages:
@. .venv/bin/activate; pip install -r requirements.txt
whois: ## Check all domains with whois
@. .venv/bin/activate; cd scripts && python domain-check-api.py
dnscheck: ## Check all domains if they have a response
@. .venv/bin/activate; cd scripts && python dnscheck.py
codestyle-check: ## Check all Python scripts code style
@. .venv/bin/activate; black . --check
codestyle-fix: ## Fix all Python scripts code style
@. .venv/bin/activate; black .