Debian Codegraph @

testing/web-platform/tests/tools/third_party/pytest-asyncio/Makefile

raw
1 .PHONY: clean clean-build clean-pyc clean-test lint test
2
3 clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
4
5 clean-build: ## remove build artifacts
6 rm -fr build/
7 rm -fr dist/
8 rm -fr .eggs/
9 find . -name '*.egg-info' -exec rm -fr {} +
10 find . -name '*.egg' -exec rm -f {} +
11
12 clean-pyc: ## remove Python file artifacts
13 find . -name '*.pyc' -exec rm -f {} +
14 find . -name '*.pyo' -exec rm -f {} +
15 find . -name '*~' -exec rm -f {} +
16 find . -name '__pycache__' -exec rm -fr {} +
17
18 clean-test: ## remove test and coverage artifacts
19 rm -fr .tox/
20 rm -f .coverage
21 rm -fr htmlcov/
22
23 lint:
24 # CI env-var is set by GitHub actions
25 ifdef CI
26 python -m pre_commit run --all-files --show-diff-on-failure
27 else
28 python -m pre_commit run --all-files
29 endif
30 python -m mypy pytest_asyncio --show-error-codes
31
32 test:
33 coverage run -m pytest tests
34 coverage xml
35 coverage report
36
37 install:
38 pip install -U pre-commit
39 pre-commit install