File size: 699 Bytes
081f792 98cb1cd f3fe9b4 34121ca 98cb1cd bcf3c90 34121ca 081f792 34121ca 081f792 e23a2a1 081f792 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
CFLAGS += -std=c99 -Wall -O2
LDFLAGS += -lseccomp
.PHONY: quality style test
quality:
python -m black --check --line-length 119 --target-version py38 .
python -m isort --check-only .
python -m flake8 --max-line-length 119
style:
python -m black --line-length 119 --target-version py38 .
python -m isort .
docker:
docker build -t competitions:latest .
docker tag competitions:latest huggingface/competitions:latest
docker push huggingface/competitions:latest
test:
pytest -sv .
sandbox: sandbox.c
gcc $(CFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm *.so sandbox
pip:
rm -rf build/
rm -rf dist/
make style && make quality
python setup.py sdist bdist_wheel
twine upload dist/* --verbose
|