FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
clean-code-python/Makefile at master · zedr/clean-code-python · GitHub
zedr
/
clean-code-python
Public
Notifications
You must be signed in to change notification settings
Fork
822
Star
4.8k
Code
Issues
3
Pull requests
2
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
clean-code-python
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (19 loc) · 582 Bytes
Breadcrumbs
clean-code-python
/
Makefile
Copy path
File metadata and controls
26 lines (19 loc) · 582 Bytes
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
.PHONY
: deps clean tests
ENV
=.env
PYTHON
=python3
PYTHON_VERSION
=
$(
shell
${PYTHON} -V | cut -d " " -f 2 | cut -c1-3)
SITE_PACKAGES
=${ENV}/lib/python${PYTHON_VERSION}/site-packages
IN_ENV
=source ${ENV}/bin/activate;
default
: tests
${ENV}
:
@echo
"
Creating Python environment...
"
>&2
@
${PYTHON}
-m venv
${ENV}
@echo
"
Updating pip...
"
>&2
@
${IN_ENV}
pip install -U pip
${SITE_PACKAGES}/pytest.py
:
@
${IN_ENV}
pip install -r requirements.txt
deps
: ${SITE_PACKAGES}/pytest.py
tests
: ${ENV} ${SITE_PACKAGES}/pytest.py
@
${IN_ENV}
pytest
clean
:
@rm -rf
${ENV}
.env .pytest_cache
Back
|
FazBrowse Home
|
New Git URL