Skip to content

Commit 039ec3b

Browse files
committed
refactor(general): improve directory structure
1 parent 1abd573 commit 039ec3b

39 files changed

Lines changed: 3 additions & 2754 deletions

.env.example

Lines changed: 0 additions & 20 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/ROADMAP.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/TODO.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

justfile

Lines changed: 3 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,11 @@
11
# List available commands
2-
default:
2+
help:
33
@just --list
44

5-
# Show project info
6-
info:
7-
@echo "Project: vscode-spoofer"
8-
@echo "Python version: $(uv run python --version)"
9-
@echo "UV version: $(uv --version)"
10-
@echo "Dependencies:"
11-
@uv tree
12-
13-
# Setup development environment
14-
setup:
15-
@echo "Setting up development environment..."
16-
uv sync --dev
17-
18-
# Run spoofer (module mode)
5+
# Run spoofer as module
196
run:
207
sudo -E $(which uv) run python -m src
218

22-
# Run spoofer (direct mode)
9+
# Run spoofer directly
2310
run-direct:
2411
sudo -E $(which uv) run python src/main.py
25-
26-
# Install dependencies
27-
install:
28-
uv sync
29-
30-
# Add new dependency
31-
add package:
32-
uv add {{package}}
33-
34-
# Add new development dependency
35-
add-dev package:
36-
uv add --dev {{package}}
37-
38-
# Run tests
39-
test:
40-
uv run python scripts/run_tests.py
41-
42-
# Run tests with coverage
43-
test-cov:
44-
uv run pytest --cov=src --cov-report=html --cov-report=term
45-
46-
# Format code
47-
format:
48-
uv run black .
49-
50-
# Check code formatting
51-
format-check:
52-
uv run black --check .
53-
54-
# Lint code
55-
lint:
56-
uv run ruff check .
57-
58-
# Fix linting issues
59-
lint-fix:
60-
uv run ruff check --fix .
61-
62-
# Check types
63-
typecheck:
64-
uv run mypy .
65-
66-
# Run all quality checks
67-
check:
68-
format-check lint typecheck
69-
70-
# Fix all auto-fixable issues
71-
fix:
72-
format lint-fix
73-
74-
# Clean up build artifacts and cache
75-
clean:
76-
rm -rf .pytest_cache/
77-
rm -rf htmlcov/
78-
rm -rf .coverage
79-
rm -rf dist/
80-
rm -rf build/
81-
rm -rf *.egg-info/
82-
find . -type d -name __pycache__ -exec rm -rf {} +
83-
find . -type f -name "*.pyc" -delete
84-
85-
# Build the package
86-
build:
87-
uv build
88-
89-
# Install the package in development mode
90-
dev-install:
91-
uv pip install -e .
92-
93-
# Update all dependencies
94-
update:
95-
uv lock --upgrade
96-
97-
# Create a new virtual environment
98-
venv:
99-
uv venv
100-
101-
# Activate virtual environment
102-
activate-venv:
103-
source .venv/bin/activate
104-
105-
# Run security audit
106-
audit:
107-
uv run pip-audit
108-
109-
# Generate requirements file for compatibility
110-
requirements:
111-
uv export --format requirements-txt --output-file requirements.txt
112-
113-
# Run interactive Python shell
114-
shell:
115-
uv run python
116-
117-
# Install pre-commit hooks
118-
pre-commit-install:
119-
uv run pre-commit install
120-
121-
# Run pre-commit on all files
122-
pre-commit:
123-
uv run pre-commit run --all-files

scripts/run_tests.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/__main__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/cli.py

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)