Skip to content

Commit

Permalink
Merge pull request #27 from LEv145:dev
Browse files Browse the repository at this point in the history
V 1.0.7
  • Loading branch information
LEv145 authored Jan 5, 2022
2 parents 95917e3 + 7279733 commit 4fcc179
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 54 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/python-package.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Test file
test.py

# Byte-compiled / optimized / DLL files
Expand Down
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

build:
os: ubuntu-20.04
tools:
python: "3.9"

python:
install:
- method: pip
path: .

12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Installation

.. code:: shell
$ pip install git+https://github.com/LEv145/aiontai
$ pip install aiontai
==========
Expand All @@ -33,7 +33,7 @@ Create client
)
async def main():
async def main() -> None:
client_object = NHentaiClient(
api=NHentaiAPI(
ClientSession(),
Expand All @@ -58,7 +58,7 @@ Or can use ``injector`` that will create the object itself (Next examples will b
)
async def main():
async def main() -> None:
injector = Injector(ClientModule())
client_object = injector.get(NHentaiClient)
Expand All @@ -69,7 +69,7 @@ Example of using the client

.. code:: python
async def main():
async def main() -> None:
injector = Injector(ClientModule())
client_object = injector.get(NHentaiClient)
Expand Down Expand Up @@ -107,7 +107,7 @@ Example of using the proxy
return ClientSession(connector=connector)
async def main():
async def main() -> None:
injector = Injector(
modules=[
ClientModule(),
Expand All @@ -123,7 +123,7 @@ Example of using the Low level api

.. code:: python
async def main():
async def main() -> None:
injector = Injector(ClientModule())
client_object = injector.get(NHentaiAPI)
async with client_object as client:
Expand Down
3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import sys
sys.path.insert(0, os.path.abspath('../..'))


# -- Project information -----------------------------------------------------

project = 'Aiontai'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiontai"
version = "1.0.6"
version = "1.0.7"
description = "Async wrapper for nhentai API"
authors = ["LEv145"]
license = "MIT"
Expand Down
9 changes: 6 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import json
from unittest import IsolatedAsyncioTestCase
from unittest.mock import Mock, AsyncMock
from pathlib import Path
from unittest import IsolatedAsyncioTestCase
from unittest.mock import (
AsyncMock,
Mock,
)

from aiohttp import ClientResponseError

from aiontai.api import (
DoujinDoesNotExistError,
EmptyAPIResultError,
NHentaiAPI,
DoujinDoesNotExistError,
SortOptions,
WrongPageError,
WrongTagError,
Expand Down
7 changes: 5 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import json
from pathlib import Path
from unittest import IsolatedAsyncioTestCase
from unittest.mock import AsyncMock, Mock
from unittest.mock import (
AsyncMock,
Mock,
)

from aiontai.client import (
SortOptions,
NHentaiClient,
SortOptions,
)
from aiontai.models import (
Doujin,
Expand Down
4 changes: 1 addition & 3 deletions tests/test_conventer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
from pathlib import Path
from unittest import TestCase

from aiontai.converter import Conventer
from tests.testdata.models import (
doujin,
doujins_result,
)
from aiontai.converter import (
Conventer,
)


class TestConventer(TestCase):
Expand Down

0 comments on commit 4fcc179

Please sign in to comment.