Skip to content

Commit 203d3dc

Browse files
committed
Remove pylint/flake8 specific settings
1 parent 8813b19 commit 203d3dc

File tree

8 files changed

+5
-22
lines changed

8 files changed

+5
-22
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ docs/html
2020
env/
2121
MANIFEST
2222
maxminddb.egg-info/
23-
pylint.txt
2423
valgrind-python.supp
25-
violations.pyflakes.txt

maxminddb/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Module for reading MaxMind DB files."""
22

3-
# pylint:disable=C0111
43
import os
54
from typing import IO, AnyStr, Union, cast
65

@@ -16,7 +15,6 @@
1615
from .reader import Reader
1716

1817
try:
19-
# pylint: disable=import-self
2018
from . import extension as _extension
2119
except ImportError:
2220
_extension = None # type: ignore[assignment]

maxminddb/decoder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
from typing import ClassVar, Union, cast
55

66
try:
7-
# pylint: disable=unused-import
87
import mmap
98
except ImportError:
10-
# pylint: disable=invalid-name
119
mmap = None # type: ignore[assignment]
1210

1311

@@ -16,7 +14,7 @@
1614
from maxminddb.types import Record
1715

1816

19-
class Decoder: # pylint: disable=too-few-public-methods
17+
class Decoder:
2018
"""Decoder for the data section of the MaxMind DB."""
2119

2220
def __init__(

maxminddb/extension.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# pylint: disable=E0601,E0602
21
from ipaddress import IPv4Address, IPv6Address
32
from os import PathLike
43
from typing import IO, Any, AnyStr
@@ -25,7 +24,6 @@ class Reader:
2524
def __enter__(self) -> Self: ...
2625
def __exit__(self, *args) -> None: ... # noqa: ANN002
2726

28-
# pylint: disable=too-few-public-methods
2927
class Metadata:
3028
binary_format_major_version: int
3129
"""

maxminddb/file.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from typing import overload
77

88
try:
9-
# pylint: disable=no-name-in-module
109
from multiprocessing import Lock
1110
except ImportError:
1211
from threading import Lock # type: ignore[assignment]
@@ -17,7 +16,6 @@ class FileBuffer:
1716

1817
def __init__(self, database: str) -> None:
1918
"""Create FileBuffer."""
20-
# pylint: disable=consider-using-with
2119
self._handle = open(database, "rb") # noqa: SIM115
2220
self._size = os.fstat(self._handle.fileno()).st_size
2321
if not hasattr(os, "pread"):
@@ -57,8 +55,7 @@ def close(self) -> None:
5755

5856
def _read(self, buffersize: int, offset: int) -> bytes:
5957
"""Read that uses pread."""
60-
# pylint: disable=no-member
61-
return os.pread(self._handle.fileno(), buffersize, offset) # type: ignore[]
58+
return os.pread(self._handle.fileno(), buffersize, offset)
6259

6360
else:
6461

maxminddb/reader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
try:
44
import mmap
55
except ImportError:
6-
# pylint: disable=invalid-name
76
mmap = None # type: ignore[assignment]
87

98
import contextlib
@@ -113,7 +112,7 @@ def __init__(
113112
msg,
114113
)
115114

116-
self._metadata = Metadata(**metadata) # pylint: disable=bad-option-value
115+
self._metadata = Metadata(**metadata)
117116

118117
self._decoder = Decoder(
119118
self._buffer,
@@ -287,7 +286,6 @@ def __enter__(self) -> "Reader":
287286
return self
288287

289288

290-
# pylint: disable=too-many-instance-attributes,R0801
291289
class Metadata:
292290
"""Metadata for the MaxMind DB reader."""
293291

maxminddb/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
Record = Union[Primitive, "RecordList", "RecordDict"]
77

88

9-
class RecordList(list[Record]): # pylint: disable=too-few-public-methods
9+
class RecordList(list[Record]):
1010
"""RecordList is a type for lists in a database record."""
1111

1212

13-
class RecordDict(dict[str, Record]): # pylint: disable=too-few-public-methods
13+
class RecordDict(dict[str, Record]):
1414
"""RecordDict is a type for dicts in a database record."""

setup.cfg

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

0 commit comments

Comments
 (0)