Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 01eedcd

Browse files
committed
remove py36 py37, add py310 py311, add timeout=10 to requests.get to make pylint happy
1 parent 80f55f6 commit 01eedcd

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

daikinapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, host):
4747

4848
def _get(self, path):
4949
""" Internal function to connect to and get any information"""
50-
response = requests.get("http://" + self._host + path)
50+
response = requests.get("http://" + self._host + path, timeout=10)
5151
response.raise_for_status()
5252
logging.debug(response.text)
5353
if not len(response.text) > 0 or not response.text[0:4] == "ret=":
@@ -64,7 +64,7 @@ def _get(self, path):
6464
def _set(self, path, data):
6565
""" Internal function to connect to and update information"""
6666
logging.debug(data)
67-
response = requests.get("http://" + self._host + path, data)
67+
response = requests.get("http://" + self._host + path, data, timeout=10)
6868
response.raise_for_status()
6969
logging.debug(response.text)
7070

tox.ini

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@ envlist =
33
clean
44
pylint
55
flake8
6-
py36
7-
py37
86
py38
9-
pypy3
7+
py39
8+
py310
9+
py311
1010
report
1111
skip_missing_interpreters = True
12-
requires =
13-
tox-pip-extensions
12+
#requires =
13+
# tox-pip-extensions
1414
basepython =
15-
py36: python3.6
16-
py37: python3.7
1715
py38: python3.8
1816
py39: python3.9
19-
pypy3: pypy3
17+
py310: python3.10
18+
py311: python3.11
2019

2120
[gh-actions]
2221
python =
23-
3.6: py36
24-
3.7: py37
25-
3.8: py38, clean, pylint, flake8, report
22+
3.8: py38
2623
3.9: py39
27-
pypy-3: pypy3
24+
"3.10": py310
25+
3.11: py311, clean, pylint, flake8, report
2826

2927
[testenv]
3028
#deps =
@@ -36,11 +34,13 @@ python =
3634
#norecursedirs = .tox
3735

3836
[testenv:clean]
37+
basepython = python3.11
3938
#deps = coverage
4039
#skip_install = true
4140
#commands = coverage erase
4241

4342
[testenv:report]
43+
basepython = python3.11
4444
#passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
4545
#deps =
4646
# coverage
@@ -52,7 +52,7 @@ python =
5252
# codecov -e TOXENV
5353

5454
[testenv:flake8]
55-
basepython = python3.6
55+
basepython = python3.11
5656
deps = flake8
5757
flake8-isort
5858
flake8-black
@@ -63,17 +63,16 @@ deps = flake8
6363
flake8-mypy
6464
pep8-naming
6565
flake8-assertive
66-
flake8-mock
67-
flake8-bandit
66+
#flake8-mock
67+
#flake8-bandit
6868
commands = flake8
6969

7070
[testenv:pylint]
71+
basepython = python3.11
7172
deps =
7273
pylint
7374
-rrequirements.txt
74-
commands = pylint --disable=bad-continuation daikinapi
75-
# pylint known bug https://github.com/ambv/black/issues/48
76-
# https://stackoverflow.com/questions/17142236/how-do-i-make-pylint-recognize-twisted-and-ephem-members
75+
commands = pylint daikinapi
7776

7877
[flake8]
7978
exclude = .tox,venv,*.egg*,.git,__pycache__,*.pyc*,build,dist

0 commit comments

Comments
 (0)