File tree 4 files changed +49
-10
lines changed 4 files changed +49
-10
lines changed Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ count = True
3
+ max-line-length = 120
4
+
5
+ # W504: Line break occurred after a binary operator
6
+ ignore = W504
Original file line number Diff line number Diff line change
1
+ .PHONY : all
2
+ all : help
3
+
4
+ .PHONY : clean
5
+ clean :
6
+ rm -f .coverage coverage.xml writer.pickle
7
+ rm -rf .pytest_cache build dist htmlcov test-reports docs/_build
8
+
9
+ .PHONY : docs
10
+ docs :
11
+ cd docs && python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
12
+
13
+ .PHONY : help
14
+ help :
15
+ @echo ' Makefile Targets'
16
+ @echo ' clean clean up local files'
17
+ @echo ' docs build docs locally'
18
+ @echo ' help print this help output'
19
+ @echo ' install install library as editable with all dependencies'
20
+ @echo ' lint execute flake8 against source code'
21
+ @echo ' test execute all tests'
22
+
23
+ .PHONY : install
24
+ install :
25
+ pip install --editable " .[test,extra,ciso,async]"
26
+
27
+ .PHONY : lint
28
+ lint :
29
+ flake8 setup.py influxdb_client/
30
+
31
+ .PHONY : test
32
+ test :
33
+ pytest tests \
34
+ --cov=./ \
35
+ --cov-report html:htmlcov \
36
+ --cov-report xml:coverage.xml
Original file line number Diff line number Diff line change 13
13
]
14
14
15
15
test_requires = [
16
+ 'flake8>=5.0.3' ,
16
17
'coverage>=4.0.3' ,
17
18
'nose>=1.3.7' ,
18
19
'pluggy>=0.3.1' ,
19
20
'py>=1.4.31' ,
20
21
'randomize>=0.13' ,
21
22
'pytest>=5.0.0' ,
23
+ 'pytest-cov>=3.0.0' ,
22
24
'httpretty==1.0.5' ,
23
25
'psutil>=5.6.3' ,
24
- 'aioresponses>=0.7.3'
26
+ 'aioresponses>=0.7.3' ,
27
+ 'sphinx==1.8.5' ,
28
+ 'sphinx_rtd_theme' ,
29
+ 'jinja2==3.0.3'
25
30
]
26
31
27
32
extra_requires = [
49
54
50
55
meta = {}
51
56
with open (Path (__file__ ).parent / 'influxdb_client' / 'version.py' ) as f :
52
- exec ('\n ' .join (l for l in f if l .startswith ('VERSION' )), meta )
57
+ exec ('\n ' .join (line for line in f if line .startswith ('VERSION' )), meta )
53
58
54
59
setup (
55
60
name = NAME ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments