forked from ScreenPyHQ/screenpy_playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (36 loc) · 1.05 KB
/
Makefile
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
49
50
51
52
53
54
55
# shortcuts to help manage flipping between branches with different dependencies
sync:
poetry install --extras dev --sync
update_lock_only:
poetry update --lock
update: update_lock_only
poetry install --extras dev
check:
poetry check
.PHONY: sync update_lock_only update check
black-check:
black --check .
black-fix:
black .
ruff-check:
ruff check .
ruff-fix:
ruff check . --fix --show-fixes
mypy:
mypy .
.PHONY: black-check black-fix ruff-check ruff-fix mypy
pre-check-in: black-check ruff-check mypy
pre-check-in-fix: black-fix ruff-fix mypy
.PHONY: pre-check-in pre-check-in-fix
# requires poetry-plugin-export
requirements:
poetry export --without-hashes --extras dev -f requirements.txt > requirements.txt
.PHONY: requirements
################################################################################
# sub-package specific
trunk_screenpy:
poetry add screenpy git+ssh://[email protected]:ScreenPyHQ/screenpy.git#trunk
local_screenpy:
pip uninstall screenpy
pip install -e ~/projects/screenpy
.PHONY: trunk_screenpy local_screenpy