From 3f28999059efe2edce18268f19d37c402d5366d9 Mon Sep 17 00:00:00 2001 From: TrueFalsee <109542778+alteralt@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:39:35 +0300 Subject: [PATCH] Add ruff --- .github/workflows/ruff.yml | 8 ++++++++ tippisell_api/__init__.py | 5 ++--- tippisell_api/client.py | 2 ++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..b6690e0 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,8 @@ +name: Ruff +on: [push, pull_request] +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: chartboost/ruff-action@v1 \ No newline at end of file diff --git a/tippisell_api/__init__.py b/tippisell_api/__init__.py index 7b90b90..738df94 100644 --- a/tippisell_api/__init__.py +++ b/tippisell_api/__init__.py @@ -1,3 +1,2 @@ -from tippisell_api.client import Client - -from . import exceptions +from tippisell_api.client import Client # noqa: F401 +from . import exceptions # noqa: F401 diff --git a/tippisell_api/client.py b/tippisell_api/client.py index 6fcdc7b..e811dc9 100644 --- a/tippisell_api/client.py +++ b/tippisell_api/client.py @@ -1,7 +1,9 @@ +import io import http import typing import aiohttp import decimal +import json from tippisell_api import exceptions, methods, models