Skip to content

Commit 6d52a30

Browse files
Samuel ScullySamuel Scully
authored andcommitted
Replace pylint with flake8
1 parent 6192aa9 commit 6d52a30

File tree

7 files changed

+9
-15
lines changed

7 files changed

+9
-15
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 110
3+
exclude = .git,__pycache__,build,dist
4+
ignore =

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
# pylint: disable=redefined-builtin
4-
53
#
64
# OpenCage Geocoder documentation build configuration file, created by
75
# sphinx-quickstart on Sat Jun 7 14:38:18 2014.

opencage/geocoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def _opencage_request(self, params):
262262
if self.session:
263263
response = self.session.get(self.url, params=params, headers=self._opencage_headers('aiohttp'))
264264
else:
265-
response = requests.get(self.url, params=params, headers=self._opencage_headers('requests')) # pylint: disable=missing-timeout
265+
response = requests.get(self.url, params=params, headers=self._opencage_headers('requests'))
266266

267267
try:
268268
response_json = response.json()

pylintrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
test_suite='pytest',
7373
tests_require=[
7474
'responses>=0.25.7',
75-
'pylint==2.17.4',
75+
'flake8>=7.0.0',
7676
'pytest>=7.4.0'
7777
],
7878
)

test/test_reverse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from opencage.geocoder import _query_for_reverse_geocoding
22

3-
def _expected_output(input_latlng, expected_output): # pylint: disable=no-self-argument
3+
def _expected_output(input_latlng, expected_output):
44
def test():
55
lat, lng = input_latlng
66
assert _query_for_reverse_geocoding(lat, lng) == expected_output

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ commands =
2323
usedevelop = True
2424
deps =
2525
responses
26-
pylint==2.17.4
26+
flake8>=7.0.0
2727
pytest
2828
commands =
29-
pylint opencage examples/demo.py setup.py test
29+
flake8 opencage examples/demo.py setup.py test

0 commit comments

Comments
 (0)