Skip to content

Commit 3738f63

Browse files
committed
Remove pylint and flakes8 config
1 parent ef9bac0 commit 3738f63

File tree

8 files changed

+4
-27
lines changed

8 files changed

+4
-27
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ geoip2.egg-info/
1313
MANIFEST
1414
.mypy_cache/
1515
*.pyc
16-
pylint.txt
1716
.pyre
1817
.pytype
1918
*.swp
2019
.tox
21-
violations.pyflakes.txt
22-
/venv
20+
/venv

geoip2/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""geoip2 client library."""
22

3-
# pylint:disable=C0111
4-
53
__title__ = "geoip2"
64
__version__ = "5.1.0"
75
__author__ = "Gregory Oschwald"

geoip2/_internal.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Internal utilities."""
22

3-
# pylint: disable=too-few-public-methods
43
from abc import ABCMeta
54

65

@@ -13,7 +12,6 @@ def __eq__(self, other: object) -> bool:
1312
def __ne__(self, other: object) -> bool:
1413
return not self.__eq__(other)
1514

16-
# pylint: disable=too-many-branches
1715
def to_dict(self) -> dict: # noqa: C901, PLR0912
1816
"""Return a dict of the object suitable for serialization."""
1917
result = {}
@@ -42,7 +40,6 @@ def to_dict(self) -> dict: # noqa: C901, PLR0912
4240
result[key] = value
4341

4442
# network and ip_address are properties for performance reasons
45-
# pylint: disable=no-member
4643
if hasattr(self, "ip_address") and self.ip_address is not None:
4744
result["ip_address"] = str(self.ip_address)
4845
if hasattr(self, "network") and self.network is not None:

geoip2/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from __future__ import annotations
99

10-
# pylint: disable=too-many-instance-attributes,too-few-public-methods,too-many-arguments
1110
import datetime
1211
import ipaddress
1312
from abc import ABCMeta
@@ -335,7 +334,6 @@ class ASN(SimpleModel):
335334
for the IP address.
336335
"""
337336

338-
# pylint:disable=too-many-arguments,too-many-positional-arguments
339337
def __init__(
340338
self,
341339
ip_address: IPAddress,
@@ -419,7 +417,6 @@ class ISP(ASN):
419417
organization: str | None
420418
"""The name of the organization associated with the IP address."""
421419

422-
# pylint:disable=too-many-arguments,too-many-positional-arguments
423420
def __init__(
424421
self,
425422
ip_address: IPAddress,

geoip2/records.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
"""Record classes used within the response models."""
22

3-
# pylint:disable=too-many-arguments,too-many-positional-arguments,too-many-instance-attributes,too-many-locals
4-
53
from __future__ import annotations
64

75
import ipaddress
8-
9-
# pylint:disable=R0903
106
from abc import ABCMeta
117
from ipaddress import IPv4Address, IPv6Address
128
from typing import TYPE_CHECKING
@@ -51,7 +47,6 @@ def __init__(
5147
@property
5248
def name(self) -> str | None:
5349
"""The name based on the locales list passed to the constructor."""
54-
# pylint:disable=E1101
5550
return next((self.names.get(x) for x in self._locales if x in self.names), None)
5651

5752

@@ -175,7 +170,6 @@ def __init__(
175170
is_in_european_union: bool = False,
176171
iso_code: str | None = None,
177172
names: dict[str, str] | None = None,
178-
# pylint:disable=redefined-builtin
179173
type: str | None = None, # noqa: A002
180174
**_,
181175
) -> None:

geoip2/webservice.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
)
6262

6363

64-
class BaseClient: # pylint: disable=missing-class-docstring, too-few-public-methods
64+
class BaseClient:
6565
"""Base class for AsyncClient and Client."""
6666

6767
_account_id: str
@@ -79,7 +79,6 @@ def __init__(
7979
timeout: float,
8080
) -> None:
8181
"""Construct a Client."""
82-
# pylint: disable=too-many-arguments,too-many-positional-arguments
8382
if locales is None:
8483
locales = ["en"]
8584

@@ -286,7 +285,7 @@ class AsyncClient(BaseClient):
286285
_existing_session: aiohttp.ClientSession
287286
_proxy: str | None
288287

289-
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments # noqa: PLR0913
288+
def __init__( # noqa: PLR0913
290289
self,
291290
account_id: int,
292291
license_key: str,
@@ -456,7 +455,7 @@ class Client(BaseClient):
456455
_session: requests.Session
457456
_proxies: dict[str, str] | None
458457

459-
def __init__( # pylint: disable=too-many-arguments,too-many-positional-arguments # noqa: PLR0913
458+
def __init__( # noqa: PLR0913
460459
self,
461460
account_id: int,
462461
license_key: str,

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ Documentation = "https://geoip2.readthedocs.org/"
5353
"Source Code" = "https://github.com/maxmind/GeoIP2-python"
5454
"Issue Tracker" = "https://github.com/maxmind/GeoIP2-python/issues"
5555

56-
[tool.pylint."MESSAGES CONTROL"]
57-
disable = "duplicate-code"
58-
5956
[tool.ruff.lint]
6057
select = ["ALL"]
6158
ignore = [

setup.cfg

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

0 commit comments

Comments
 (0)