Skip to content

Commit 2ff8b5b

Browse files
committed
black: update format with 23.1.0
Fix the version of these crappy dependencies once again. Signed-off-by: Robin Jarry <[email protected]>
1 parent c6ed31f commit 2ff8b5b

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,4 +521,4 @@ min-public-methods=0
521521

522522
# Exceptions that will emit a warning when being caught. Defaults to
523523
# "Exception".
524-
overgeneral-exceptions=Exception
524+
overgeneral-exceptions=builtins.Exception

sysrepo/change.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
# ------------------------------------------------------------------------------
1212
class Change:
13-
1413
__slots__ = ("xpath",)
1514

1615
def __init__(self, xpath: str):
@@ -113,7 +112,6 @@ def __str__(self) -> str:
113112

114113
# ------------------------------------------------------------------------------
115114
class ChangeCreated(Change):
116-
117115
__slots__ = ("value", "after")
118116

119117
def __init__(self, xpath: str, value: Any, after: Optional[str] = None):
@@ -138,7 +136,6 @@ def __str__(self) -> str:
138136

139137
# ------------------------------------------------------------------------------
140138
class ChangeModified(Change):
141-
142139
__slots__ = ("value", "prev_val", "prev_dflt")
143140

144141
def __init__(self, xpath: str, value: Any, prev_val: str, prev_dflt: bool = False):
@@ -161,7 +158,6 @@ def __str__(self) -> str:
161158

162159
# ------------------------------------------------------------------------------
163160
class ChangeDeleted(Change):
164-
165161
__slots__ = ("value",)
166162

167163
def __init__(self, xpath: str, value: Any):
@@ -177,7 +173,6 @@ def __str__(self) -> str:
177173

178174
# ------------------------------------------------------------------------------
179175
class ChangeMoved(Change):
180-
181176
__slots__ = ("after",)
182177

183178
def __init__(self, xpath: str, after: str):

sysrepo/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
# ------------------------------------------------------------------------------
1111
class SysrepoError(Exception):
12-
1312
rc = None
1413
__slots__ = ("msg",)
1514

sysrepo/subscription.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def task_done(self, task_id: Any, event: str, task: asyncio.Task) -> None:
180180
lib.SR_EV_NOTIF_RESUMED: "resumed",
181181
}
182182

183+
183184
# ------------------------------------------------------------------------------
184185
@ffi.def_extern(name="srpy_module_change_cb")
185186
def module_change_callback(session, sub_id, module, xpath, event, req_id, priv):

tox.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ basepython = python3
5656
description = Format python code using isort and black.
5757
changedir = .
5858
deps =
59-
black
60-
isort
59+
black~=23.1.0
60+
isort~=5.12.0
6161
skip_install = true
6262
install_command = python3 -m pip install {opts} {packages}
6363
allowlist_externals =
@@ -73,10 +73,10 @@ description = Run coding style checks.
7373
install_command = {toxinidir}/tox-install.sh {toxworkdir} {opts} {packages}
7474
changedir = .
7575
deps =
76-
black
77-
flake8
78-
isort
79-
pylint
76+
black~=23.1.0
77+
flake8~=6.0.0
78+
isort~=5.12.0
79+
pylint~=2.16.2
8080
allowlist_externals =
8181
/bin/sh
8282
/usr/bin/sh

0 commit comments

Comments
 (0)