Skip to content

Commit 9e6f70f

Browse files
committed
upgrade build deps, fix warnings
1 parent a38680c commit 9e6f70f

6 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎etc/requirements.build.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
setuptools>=67
2-
wheel>=0.41
2+
wheel>=0.47
33
twine==4.0.2
44
tox==4.8.0

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ py-version = "3.10"
249249

250250
# When enabled, pylint would attempt to guess common misconfiguration and emit
251251
# user-friendly hints instead of false-positive error messages.
252-
suggestion-mode = true
252+
#suggestion-mode = true
253253

254254
# Allow loading of arbitrary C extensions. Extensions are imported into the
255255
# active Python interpreter and may run arbitrary code.
@@ -540,6 +540,8 @@ disable = [
540540
"try-except-raise", "deprecated-module", "no-else-break", "no-else-continue",
541541
# junk
542542
"trailing-newlines", "consider-using-f-string",
543+
"too-many-positional-arguments",
544+
"catching-non-exception",
543545
# expected
544546
"cyclic-import",
545547
# issues

‎skytools/apipkg.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __docget(self):
9696

9797
def __docset(self, value):
9898
self.__doc = value
99-
__doc__ = property(__docget, __docset) # type: ignore
99+
__doc__ = property(__docget, __docset)
100100

101101
def __init__(self, name, importspec, implprefix=None, attr=None):
102102
super().__init__(name)
@@ -165,7 +165,7 @@ def __makeattr(self, name):
165165
__getattr__ = __makeattr
166166

167167
@property
168-
def __dict__(self):
168+
def __dict__(self): # type: ignore
169169
# force all the content of the module
170170
# to be loaded when __dict__ is read
171171
dictdescr = ModuleType.__dict__['__dict__'] # type: ignore

‎skytools/scripting.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def parse_args(self, args: Sequence[str]) -> Tuple[Any, Sequence[str]]:
323323
args = getattr(options, "args", [])
324324
return options, args
325325
opt_parser = self.init_optparse()
326-
options2, args2 = opt_parser.parse_args(args)
326+
options2, args2 = opt_parser.parse_args(list(args))
327327
return options2, args2
328328

329329
def print_version(self) -> None:

‎skytools/tnetstrings.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""TNetStrings.
22
"""
3+
# mypy: disable-error-code="comparison-overlap"
34

45
import codecs
56
from typing import Any, List

‎tox.ini‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@ envlist = lint,xlint,py3
55
[package]
66
name = skytools
77
deps =
8-
psycopg2-binary==2.9.7; platform_python_implementation != 'PyPy'
8+
psycopg2-binary==2.9.12; platform_python_implementation != 'PyPy'
99
test_deps =
10-
#coverage==7.3.0
11-
coverage==7.2.7
12-
pytest==7.4.0
13-
pytest-cov==4.1.0
10+
coverage==7.14.1
11+
pytest==9.0.3
12+
pytest-cov==7.1.0
1413
lint_deps =
15-
mypy==1.5.1
16-
pyflakes==3.1.0
17-
typing-extensions==4.7.1
14+
mypy==2.1.0
15+
pyflakes==3.4.0
16+
typing-extensions==4.15.0
1817
types-setuptools==68.1.0.0
19-
types-psycopg2==2.9.21.11; platform_python_implementation != 'PyPy'
18+
types-psycopg2==2.9.21.20260518; platform_python_implementation != 'PyPy'
2019
xlint_deps =
21-
pylint==2.17.5
22-
pytype==2023.8.22
20+
pylint==4.0.5
2321
doc_deps =
24-
sphinx==7.2.2
25-
docutils==0.20.1
22+
sphinx==9.1.0
23+
docutils==0.23
2624

2725
[testenv]
2826
changedir = {toxinidir}

0 commit comments

Comments
 (0)