Skip to content

Commit f5473a9

Browse files
authored
Merge pull request #123 from pcorpet/pylint
Update to pylint 2.9.5
2 parents 599cbb5 + b06a7fc commit f5473a9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
# built documents.
5151
#
5252
# The full version, including alpha/beta/rc tags.
53-
init_py = open(os.path.join(os.path.dirname(__file__),
54-
'..', 'cssselect', '__init__.py')).read()
53+
with open(os.path.join(os.path.dirname(__file__), '..', 'cssselect', '__init__.py')) as init_file:
54+
init_py = init_file.read()
5555
release = re.search("VERSION = '([^']+)'", init_py).group(1)
5656
# The short X.Y version.
5757
version = release.rstrip('dev')

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414

1515

1616
ROOT = os.path.dirname(__file__)
17-
README = open(os.path.join(ROOT, "README.rst")).read()
18-
INIT_PY = open(os.path.join(ROOT, "cssselect", "__init__.py")).read()
17+
with open(os.path.join(ROOT, "README.rst")) as readme_file:
18+
README = readme_file.read()
19+
with open(os.path.join(ROOT, "cssselect", "__init__.py")) as init_file:
20+
INIT_PY = init_file.read()
1921
VERSION = re.search("VERSION = '([^']+)'", INIT_PY).group(1)
2022

2123

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ commands =
2626
[testenv:pylint]
2727
deps =
2828
{[testenv]deps}
29-
pylint==2.8.3
29+
pylint==2.9.5
3030
commands =
3131
pylint {posargs: cssselect setup.py tests docs}
3232

0 commit comments

Comments
 (0)