-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 977 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (36 loc) · 977 Bytes
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
35
36
37
38
39
40
41
42
43
44
45
pipenv:
python -m pip install pipenv
install:
pipenv install --dev --keep-outdated --skip-lock
build:
pipenv run python setup.py sdist bdist_wheel
publish:
pipenv run twine upload dist/*
pre-commit:
pipenv run pre-commit install
mypy:
pipenv run mypy mdfind
test:
pipenv run pytest --exitfirst tests/
pipenv run pytest --cov --cov-fail-under=100
format:
pipenv run isort mdfind setup.py tests
pipenv run black mdfind setup.py tests
clean:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
rm -f .coverage
rm -fr .pytest_cache
rm -fr .mypy_cache
ci:
pipenv run black --check --verbose mdfind/ tests/ setup.py
pipenv run mypy mdfind
pipenv run pytest --exitfirst tests/
pipenv run pytest --cov --cov-fail-under=100