Skip to content

Commit

Permalink
Revert "Fixed grammatical and spelling errors in the codebase."
Browse files Browse the repository at this point in the history
Removed the merge messages pushed inside README.md.

This reverts commit 5073403
  • Loading branch information
lasersPew committed Jan 29, 2024
1 parent 3931984 commit 4b189ce
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Anyone is free to contribute to this proyect, just try to follow the codestyle (desired but not obligaded).
Anyone is free to contribute to this project, just try to follow the code style (desired but not obligated).
6 changes: 3 additions & 3 deletions mangadex/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def manga_from_dict(cls, data: dict):
pass

if data["type"] != "manga" or not data:
raise MangaError(data=data, message="The data probvided is not a Manga")
raise MangaError(data=data, message="The data provided is not a Manga")

attributes = data["attributes"]

Expand Down Expand Up @@ -392,7 +392,7 @@ def __init__(self) -> None:
@classmethod
def author_from_dict(cls, data: dict):
"""
Creates Autho from JSON
Creates Author from JSON
"""
try:
data = data["data"]
Expand Down Expand Up @@ -620,7 +620,7 @@ def fetch_cover_image(self, quality: str = "source") -> str:
"""
Returns the url of a cover art
Parametes
Parameters
-------------
quality : `str`. Values : `medium`, `small`
Expand Down
8 changes: 4 additions & 4 deletions mangadex/url_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,27 @@ def request_url(
try:
resp = requests.get(url, headers=headers, timeout=timeout)
except requests.RequestException as e:
print(f"An error has occured: {e}")
print(f"An error has occurred: {e}")
raise
elif method == "POST":
try:
resp = requests.post(url, json=params, headers=headers, timeout=timeout)
except requests.RequestException as e:
print(f"An error has occured: {e}")
print(f"An error has occurred: {e}")
raise
elif method == "DELETE":
try:
resp = requests.delete(url, headers=headers, timeout=timeout)
except requests.RequestException as e:
print(f"An error has occured: {e}")
print(f"An error has occurred: {e}")
raise
elif method == "PUT":
try:
resp = requests.put(
url, headers=headers, params=params, timeout=timeout
)
except requests.RequestException as e:
print(f"An error has occured: {e}")
print(f"An error has occurred: {e}")
raise
else:
raise ValueError(f"Method {method} is invalid")
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
clasifiers=[
"License :: MIT License",
"Operating System :: OS Independent",
"Programming Languaje :: Python :: 3.6",
"Programming Languaje :: Python :: 3.7",
"Programming Languaje :: Python :: 3.8",
"Programming Languaje :: Python :: 3.9",
"Programming Languaje :: Python :: 3.10",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Internet",
"Topic :: Library",
"Topic :: Wrapper",
Expand Down
10 changes: 5 additions & 5 deletions test/test_unittest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Module for unit and intergration tests
Module for unit and integration tests
"""
from pathlib import Path
import json
Expand Down Expand Up @@ -43,7 +43,7 @@ def test_SearchManga(self):

assert resp == saved_resp, "The Manga objects are not equal"

def test_SerachMangaWithLotOfArgs(self):
def test_SearchMangaWithLotOfArgs(self):
tags = self.api.tag_list()
wanted_tags = ["Oneshot", "Romance"]
not_wanted_tags = ["Loli", "Incest"]
Expand Down Expand Up @@ -212,7 +212,7 @@ def test_GetCustomList(self):
)
class Test_private_api:
"""
Class for tersting the pirvate API calls
Class for testing private API calls
"""

api = md.Api()
Expand All @@ -226,7 +226,7 @@ def test_GetMangaReadingStatus(self):
self.login()

manga_id = "35c33279-395d-4d9f-abec-93893c28ab29"
self.api.get_manga_read_markes(manga_id=manga_id)
self.api.get_manga_read_markers(manga_id=manga_id)

def test_GetAllMangaReadingStatus(self):
self.login()
Expand Down Expand Up @@ -278,5 +278,5 @@ def test_NotFound(self):
except md.ApiError as e:
assert 404 == e.code

def test_Uanuthorized(self):
def test_Unauthorized(self):
...

0 comments on commit 4b189ce

Please sign in to comment.