FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-uv/Makefile at main · copier-templates/python-uv · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
copier-templates
/
python-uv
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-uv
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (26 loc) · 1.31 KB
Breadcrumbs
python-uv
/
Makefile
Copy path
File metadata and controls
34 lines (26 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
Internal template development Makefile (NOT copied to generated projects)
#
Provides conveniences for running the template validation tests.
PYTHON
?= uv run
.PHONY
: help clean check install test
CLEAN_ROOT_DIRS
:= build/ dist/ .pytest_cache .ruff_cache htmlcov .coverage
CLEAN_DIRS
:= __pycache__ *.egg-info
CLEAN_FILES
:= *.pyc
help
:
#
# Display available commands
@grep -E
'
^[a-zA-Z_-]+:.*?## .*$$
'
$(
MAKEFILE_LIST
)
|
awk
'
BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}
'
check
:
@for tools
in
"
uv pre-commit
"
;
do
\
if
!
command
-v
$$
tools
>
/dev/null
2>&1
;
then
\
echo
"
Error: '
$$
tools' is not installed. Please install it first.
"
>&2
;
\
exit
1
;
\
fi
;
\
done
install
: check
#
# Install development dependencies (copier, pytest)
@uv sync --all-extras
@pre-commit install
#
Run internal validation tests, use environment variable EXTRA_PYTEST_ARGS to pass additional args.
test
: clean install
#
# Run internal template validation tests
@
$(
PYTHON
)
pytest my_tests
$$
EXTRA_PYTEST_ARGS
||
(echo
"
\nHint: run 'make install' first to install copier & pytest
"
>&2
;
exit
1)
clean
:
#
# Clean build and cache artifacts
@rm -rf
$(
CLEAN_ROOT_DIRS
)
@for dir
in
$(
CLEAN_DIRS
)
;
do
find
.
-type d -name
"
$$
dir
"
-exec rm -rf {} +
;
done
@for file
in
$(
CLEAN_FILES
)
;
do
find
.
-type f -name
"
$$
file
"
-delete
;
done
Back
|
FazBrowse Home
|
New Git URL