Skip to content

Commit

Permalink
fix #460: update to black v24 (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
rorour authored Mar 15, 2024
1 parent 6e7ccf5 commit 5c9dd66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions rsconf/component/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ def _pass():
"-t",
"ed25519",
"-N",
_pass()
if encrypt_identity and f == res.get("identity_f")
else "",
(
_pass()
if encrypt_identity and f == res.get("identity_f")
else ""
),
"-C",
j2_ctx.rsconf_db.host,
"-f",
Expand Down
1 change: 1 addition & 0 deletions rsconf/component/logrotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:copyright: Copyright (c) 2018 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""

from __future__ import absolute_import, division, print_function
from pykern import pkio
from rsconf import component
Expand Down
5 changes: 4 additions & 1 deletion rsconf/component/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:copyright: Copyright (c) 2018-2022 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""

from pykern import pkcollections
from pykern import pkcompat
from pykern import pkio
Expand Down Expand Up @@ -229,7 +230,9 @@ def _nets(self, jc, spec):
)
v.pksetdefault(is_private=lambda: not v.is_global and n.is_private)
if v.gateway:
assert ipaddress.ip_network(v.gateway + "/32",).subnet_of(
assert ipaddress.ip_network(
v.gateway + "/32",
).subnet_of(
n
), "{}: gateway is not subnet of {}".format(v.gateway, n)
if "nameservers" in v:
Expand Down
1 change: 1 addition & 0 deletions rsconf/component/vm_devbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:copyright: Copyright (c) 2023 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""

from pykern import pkconfig
from pykern import pkio
from pykern.pkcollections import PKDict
Expand Down

0 comments on commit 5c9dd66

Please sign in to comment.