snapshot of https://github.com/ActivityWatch/aw-client.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
This commit is contained in:
32
Makefile
Normal file
32
Makefile
Normal file
@@ -0,0 +1,32 @@
|
||||
.PHONY: build test typecheck clean examples
|
||||
|
||||
build:
|
||||
poetry install
|
||||
|
||||
test:
|
||||
python -c "import aw_client"
|
||||
pytest -s -vv tests/test_requestqueue.py tests/test_profile.py tests/test_profile_config.py
|
||||
|
||||
test-integration:
|
||||
pytest -v tests/test_client.py
|
||||
|
||||
test-examples:
|
||||
cd examples; pytest -v *.py
|
||||
cd examples; yes | python3 load_dataframe.py
|
||||
cd examples; python3 working_hours.py 'activitywatch|aw-|github.com' fakedata
|
||||
|
||||
lint:
|
||||
ruff check .
|
||||
|
||||
lint-fix:
|
||||
ruff check --fix .
|
||||
|
||||
typecheck:
|
||||
poetry run mypy
|
||||
|
||||
format:
|
||||
ruff format .
|
||||
|
||||
clean:
|
||||
rm -rf build dist
|
||||
rm -rf aw_client/__pycache__
|
||||
Reference in New Issue
Block a user