-
Notifications
You must be signed in to change notification settings - Fork 0
/
lume.yml
48 lines (43 loc) · 1.08 KB
/
lume.yml
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
46
47
48
name: lume
env:
PACKAGE_NAME: lume
install:
run:
- uv pip install -U -r requirements/dev-requirements.txt -r requirements/requirements.txt -r requirements/types-requirements.txt
- uv pip install -e .
- pre-commit install
uninstall:
run:
- uv pip uninstall lume -y
- uv pip freeze | xargs pip uninstall -y
steps:
clean:
run:
- rm -f .coverage
- rm -rf deps
- rm -rf output
- rm -rf docs/build
- rm -rf .pytest_cache
- find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
lint:
run:
- black --check .
- flake8 $PACKAGE_NAME tests
- isort --check .
check-requirements:
run: safety check -r requirements/requirements.txt
static-analysis:
run: mypy $PACKAGE_NAME
coverage:
run: pytest -c pytest.coverage.ini
test:
run: pytest
docs:
run: |
uv pip install -r requirements/docs-requirements.txt
mkdocs build
check-no-binary-installation:
run: |
uv pip install wheel
python setup.py sdist
pip wheel --no-binary $PACKAGE_NAME -w /tmp/ext dist/$PACKAGE_NAME-*.tar.gz