FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-zeroconf/Makefile at master · dbrescia/python-zeroconf · GitHub
dbrescia
python-zeroconf
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-zeroconf
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (35 loc) · 1.13 KB
Breadcrumbs
python-zeroconf
/
Makefile
Copy path
File metadata and controls
49 lines (35 loc) · 1.13 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY
: all virtualenv
MAX_LINE_LENGTH
=110
PYTHON_IMPLEMENTATION:
=
$(
shell
python -c "import sys;import platform;sys.stdout.write(platform.python_implementation()
)")
PYTHON_VERSION:
=
$(
shell
python -c "import sys;sys.stdout.write('
%
d.
%
d'
%
sys.version_info[:2])
")
TEST_ARGS
=
LINT_TARGETS:
=flake8
ifneq
(
$(
findstring
PyPy,
$(
PYTHON_IMPLEMENTATION
)
)
,PyPy)
LINT_TARGETS:=$(LINT_TARGETS) mypy
endif
ifneq
(
$(
findstring
3.5,
$(
PYTHON_VERSION
)
)
,3.5)
LINT_TARGETS:=$(LINT_TARGETS) black_check
endif
virtualenv
: ./env/requirements.built
env
:
virtualenv env
./env/requirements.built
: env requirements-dev.txt
./env/bin/pip install -r requirements-dev.txt
cp requirements-dev.txt ./env/requirements.built
.PHONY
: ci
ci
: test_coverage lint
.PHONY
: lint
lint
:
$(
LINT_TARGETS
)
flake8
:
flake8 --max-line-length=
$(
MAX_LINE_LENGTH
)
examples
*
.py
.PHONY
: black_check
black_check
:
black --check
*
.py examples
mypy
:
mypy examples/
*
.py test_zeroconf.py zeroconf.py
test
:
nosetests -v
$(
TEST_ARGS
)
test_coverage
:
nosetests -v --with-coverage --cover-package=zeroconf
$(
TEST_ARGS
)
autopep8
:
autopep8 --max-line-length=
$(
MAX_LINE_LENGTH
)
-i examples
*
.py
Back
|
FazBrowse Home
|
New Git URL