From d41b360f07c08a202c77917a95e5e57dae2d2138 Mon Sep 17 00:00:00 2001 From: Raven Date: Thu, 14 Mar 2024 16:51:04 -0600 Subject: [PATCH] fix #450: update to black v24 (#452) --- pykern/pkasyncio.py | 1 + pykern/pkcli/__init__.py | 1 + pykern/pkcli/github.py | 1 + pykern/util.py | 1 + setup.py | 2 +- tests/pkcli/github_test.py | 1 + tests/pkcli_test.py | 1 + tests/pkio_test.py | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pykern/pkasyncio.py b/pykern/pkasyncio.py index e635fb07..548df093 100644 --- a/pykern/pkasyncio.py +++ b/pykern/pkasyncio.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + from pykern import pkconfig from pykern.pkdebug import pkdlog, pkdp import asyncio diff --git a/pykern/pkcli/__init__.py b/pykern/pkcli/__init__.py index f52ec873..6c69b13a 100644 --- a/pykern/pkcli/__init__.py +++ b/pykern/pkcli/__init__.py @@ -22,6 +22,7 @@ :copyright: Copyright (c) 2015-2023 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + import argh import argh.assembling import argparse diff --git a/pykern/pkcli/github.py b/pykern/pkcli/github.py index 824be0f3..be8a2d32 100644 --- a/pykern/pkcli/github.py +++ b/pykern/pkcli/github.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2013-2018 Bivio Software, Inc. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + from pykern import pkcli from pykern import pkconfig from pykern import pkio diff --git a/pykern/util.py b/pykern/util.py index a012e4c4..b36d3e4c 100644 --- a/pykern/util.py +++ b/pykern/util.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2023 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + # Root module: Limit imports to avoid dependency issues import os.path import sys diff --git a/setup.py b/setup.py index 45ee2bd7..35b99bb6 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def _requires(): return [_urllib3()] + [ "argh>=0.26", - "black~=22.12", + "black~=24.2", "future>=0.14", "github3.py>=1.1", # for virtualenv diff --git a/tests/pkcli/github_test.py b/tests/pkcli/github_test.py index 3f407e8f..84260328 100644 --- a/tests/pkcli/github_test.py +++ b/tests/pkcli/github_test.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2019 Bivio Software, Inc. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + from pykern.pkcollections import PKDict import pytest import os diff --git a/tests/pkcli_test.py b/tests/pkcli_test.py index 1e165117..ed9cd1b3 100644 --- a/tests/pkcli_test.py +++ b/tests/pkcli_test.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2015-2023 Bivio Software, Inc. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + import pytest diff --git a/tests/pkio_test.py b/tests/pkio_test.py index e15aeb5f..b2f7d821 100644 --- a/tests/pkio_test.py +++ b/tests/pkio_test.py @@ -3,6 +3,7 @@ :copyright: Copyright (c) 2015 Bivio Software, Inc. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ + import glob import os import py