snapshot of https://github.com/ActivityWatch/aw-core.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
This commit is contained in:
35
Makefile
Normal file
35
Makefile
Normal file
@@ -0,0 +1,35 @@
|
||||
.PHONY: build test benchmark typecheck typecheck-strict clean
|
||||
|
||||
build:
|
||||
poetry install
|
||||
|
||||
test:
|
||||
python -m pytest tests -v --cov=aw_core --cov=aw_datastore --cov=aw_transform --cov=aw_query
|
||||
|
||||
.coverage:
|
||||
make test
|
||||
|
||||
coverage_html: .coverage
|
||||
python -m coverage html -d coverage_html
|
||||
|
||||
benchmark:
|
||||
python -m aw_datastore.benchmark
|
||||
|
||||
typecheck:
|
||||
export MYPYPATH=./stubs; python -m mypy aw_core aw_datastore aw_transform aw_query --show-traceback --ignore-missing-imports --follow-imports=skip
|
||||
|
||||
typecheck-strict:
|
||||
export MYPYPATH=./stubs; python -m mypy aw_core aw_datastore aw_transform aw_query --strict-optional --check-untyped-defs; echo "Not a failing step"
|
||||
|
||||
lint:
|
||||
ruff check .
|
||||
|
||||
lint-fix:
|
||||
ruff check --fix .
|
||||
|
||||
format:
|
||||
ruff format .
|
||||
|
||||
clean:
|
||||
rm -rf build dist
|
||||
rm -rf aw_core/__pycache__ aw_datastore/__pycache__
|
||||
Reference in New Issue
Block a user