Skip to content

Commit

Permalink
Ruff and black
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 22, 2023
1 parent 2ca4f95 commit 9fc6385
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/lvmnps/actor/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import asyncio
import os

from typing import ClassVar, Dict

import click
Expand Down
1 change: 1 addition & 0 deletions python/lvmnps/actor/commands/onoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import annotations

import asyncio

from typing import TYPE_CHECKING

import click
Expand Down
1 change: 1 addition & 0 deletions python/lvmnps/switch/dli/dli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import asyncio
import logging

from typing import TYPE_CHECKING

import httpx
Expand Down
1 change: 1 addition & 0 deletions python/lvmnps/switch/netio/Netio/Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
from abc import abstractmethod
from enum import IntEnum

from typing import Dict, List

import requests
Expand Down
3 changes: 2 additions & 1 deletion python/lvmnps/switch/netio/Netio/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import os
import sys
import traceback
from typing import List
from urllib.parse import urlparse, urlunparse

from typing import List

import pkg_resources
import requests

Expand Down
2 changes: 1 addition & 1 deletion python/lvmnps/switch/powerswitchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def g(config, key, d=None):
else c
if len(k) < 2
else g(c, k[1], d)
if type(c) is dict
if isinstance(c, dict)
else d
)

Expand Down
1 change: 1 addition & 0 deletions tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import annotations

import asyncio

from typing import Any

from lvmnps.actor.actor import NPSActor
Expand Down

0 comments on commit 9fc6385

Please sign in to comment.