tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Makefile (753B)


      1 .PHONY: default style types tests coverage maxi_cov build clean
      2 
      3 export PYTHONASYNCIODEBUG=1
      4 export PYTHONPATH=src
      5 export PYTHONWARNINGS=default
      6 
      7 default: style types tests
      8 
      9 style:
     10 black src tests
     11 ruff --fix src tests
     12 
     13 types:
     14 mypy --strict src
     15 
     16 tests:
     17 python -m unittest
     18 
     19 coverage:
     20 coverage run --source src/websockets,tests -m unittest
     21 coverage html
     22 coverage report --show-missing --fail-under=100
     23 
     24 maxi_cov:
     25 python tests/maxi_cov.py
     26 coverage html
     27 coverage report --show-missing --fail-under=100
     28 
     29 build:
     30 python setup.py build_ext --inplace
     31 
     32 clean:
     33 find . -name '*.pyc' -o -name '*.so' -delete
     34 find . -name __pycache__ -delete
     35 rm -rf .coverage .mypy_cache build compliance/reports dist docs/_build htmlcov MANIFEST src/websockets.egg-info