-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (49 loc) · 1.67 KB
/
Copy pathMakefile
File metadata and controls
60 lines (49 loc) · 1.67 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile for Phishing URL Detector
# This provides convenient commands for development and testing
.PHONY: help run-terminal run-gui test lint format clean install-dev
# Default target
help:
@echo "Phishing URL Detector - Available Commands:"
@echo "=========================================="
@echo " run-terminal : Run the terminal version"
@echo " run-gui : Run the GUI version"
@echo " test : Run unit tests"
@echo " lint : Run flake8 linting"
@echo " format : Format code with black"
@echo " clean : Clean temporary files"
@echo " install-dev : Install development dependencies"
@echo " check-all : Run all checks (lint + test)"
# Run applications
run-terminal:
python phishing_detector.py
run-gui:
python phishing_detector_gui.py
# Testing
test:
python -m pytest test_phishing_detector.py -v
# Code quality
lint:
python -m flake8 phishing_detector.py phishing_detector_gui.py test_phishing_detector.py
format:
python -m black --line-length 79 *.py
# Development setup
install-dev:
pip install -r requirements-dev.txt
# Run all quality checks
check-all: lint test
@echo "All checks completed successfully!"
# Cleanup
clean:
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} +
find . -type d -name ".pytest_cache" -exec rm -rf {} +
# Show project info
info:
@echo "Project: Phishing URL Detector"
@echo "Version: 1.0.0"
@echo "Python: $(shell python --version)"
@echo "Files:"
@echo " - phishing_detector.py (Terminal version)"
@echo " - phishing_detector_gui.py (GUI version)"
@echo " - test_phishing_detector.py (Unit tests)"