Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump black to 23.1.0 #532

Merged
merged 3 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ on:

jobs:
lint-python:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.6"

- name: Install dependencies
run: |
pip install --upgrade pip tox
Expand All @@ -29,7 +24,7 @@ jobs:
tox -e lint

lint-shell:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
uses: actions/checkout@v3
Expand All @@ -43,11 +38,6 @@ jobs:
- name: Repository checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.6"

- name: Install dependencies
run: |
pip install --upgrade pip tox
Expand Down
1 change: 0 additions & 1 deletion pylxd/deprecated/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def _get_ssl_certs():


class _LXDResponse(NamedTuple):

status: int
body: bytes
json: Any
Expand Down
2 changes: 1 addition & 1 deletion pylxd/deprecated/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_image_size(self, image, data):
image_size = data["size"]
if image_size <= 0:
raise exceptions.ImageInvalidSize()
return image_size // 1024 ** 2
return image_size // 1024**2
except Exception as e:
print("Unable to fetch image info - {}".format(e))
raise
Expand Down
1 change: 0 additions & 1 deletion pylxd/deprecated/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
return_value=("200", fake_api.fake_image_info()),
)
class LXDAPIImageTestObject(LXDAPITestBase):

list_data = (
("list", (), ()),
("search", ({"foo": "bar"},), ("foo=bar",)),
Expand Down
1 change: 0 additions & 1 deletion pylxd/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class ClusterCertificateManager(BaseManager):


class ClusterManager(BaseManager):

manager_for = "pylxd.models.Cluster"

def __init__(self, client, *args, **kwargs):
Expand Down
1 change: 0 additions & 1 deletion pylxd/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class InstanceState(model.AttributeDict):


class _InstanceExecuteResult(NamedTuple):

exit_code: int
stdout: IO
stderr: IO
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ testing =
# of requests-mock. Thus, we have to pin it down.
requests-mock < 1.2
format =
black == 20.8b1
black == 23.1.0
flake8 >= 2.5.0
isort == 5.6.4
click < 8.1.0
check =
mypy
doc =
Expand Down