aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-15 23:29:54 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-15 23:29:54 +0100
commitb9f170b267d675662fe3b67e90231865d6a33edd (patch)
tree07b572ced18474e46ddedccb51c8298fe4c43d7f
parentf431d0d82ddfd38f9a7e53042070a7e49ee67019 (diff)
downloadfietsboek-b9f170b267d675662fe3b67e90231865d6a33edd.tar.gz
fietsboek-b9f170b267d675662fe3b67e90231865d6a33edd.tar.bz2
fietsboek-b9f170b267d675662fe3b67e90231865d6a33edd.zip
fix lints
-rw-r--r--fietsboek/models/track.py3
-rw-r--r--pylint.tests.toml2
-rw-r--r--tests/integration/test_browse.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/fietsboek/models/track.py b/fietsboek/models/track.py
index b0b1f7b..5f09059 100644
--- a/fietsboek/models/track.py
+++ b/fietsboek/models/track.py
@@ -49,6 +49,7 @@ from babel.numbers import format_decimal
from .meta import Base
from .. import util
+
if TYPE_CHECKING:
from .. import models
@@ -415,6 +416,8 @@ class TrackWithMetadata:
``track``, but most attributes are proxied read-only.
"""
+ # pylint: disable=too-many-public-methods
+
def __init__(self, track: Track, data_manager):
self.track = track
self.cache = track.cache
diff --git a/pylint.tests.toml b/pylint.tests.toml
index 1c479e4..9e4b37b 100644
--- a/pylint.tests.toml
+++ b/pylint.tests.toml
@@ -230,7 +230,7 @@ valid-metaclass-classmethod-first-arg = ["cls"]
# ignored-parents =
# Maximum number of arguments for function / method.
-max-args = 5
+max-args = 10
# Maximum number of attributes for a class (see R0902).
max-attributes = 7
diff --git a/tests/integration/test_browse.py b/tests/integration/test_browse.py
index 603f301..89d6f94 100644
--- a/tests/integration/test_browse.py
+++ b/tests/integration/test_browse.py
@@ -2,12 +2,10 @@ import io
import zipfile
from contextlib import contextmanager
from datetime import datetime
-from pathlib import Path
from testutils import load_gpx_asset
from fietsboek import models
from fietsboek.models.track import Visibility
-from fietsboek.data import DataManager
@contextmanager