Skip to content

Commit 5c8731a

Browse files
authored
docs: fix some typos (#323)
Signed-off-by: John E <jeis4wpi@outlook.com>
1 parent 85cd6d3 commit 5c8731a

12 files changed

Lines changed: 42 additions & 42 deletions

File tree

api/src/anipy_api/locallist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def update(
148148
if not ("episode" in update_fields and "language" in update_fields):
149149
raise ArgumentError(
150150
"The anime you are trying to update is not added to the list and you are not"
151-
"providing the neccessary update_fields `episode` and `language`, this can not be processed"
151+
"providing the necessary update_fields `episode` and `language`, this can not be processed"
152152
)
153153

154154
entry = LocalListEntry(

api/src/anipy_api/provider/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __init_subclass__(cls) -> None:
140140
for v in ["NAME", "BASE_URL", "FILTER_CAPS"]:
141141
if not hasattr(cls, v):
142142
raise NotImplementedError(
143-
"Attribute '{}' has not been overriden in class '{}'".format(
143+
"Attribute '{}' has not been overridden in class '{}'".format(
144144
v, cls.__name__
145145
)
146146
)

cli/src/anipy_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _safe_cli(args: CliArgs):
4242
config._create_config()
4343

4444
if config.dc_presence:
45-
with DotSpinner("Intializing Discord Presence...") as s:
45+
with DotSpinner("Initializing Discord Presence...") as s:
4646
try:
4747
DiscordPresence()
4848
s.set_text(colors.GREEN, "Initialized Discord Presence")

cli/src/anipy_cli/menus/anilist_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ def tag_anime(self):
196196
choices.append(
197197
Choice(
198198
value=config.tracker_dub_tag,
199-
name=f"{config.tracker_dub_tag} (sets wheter you prefer to watch a particular anime in dub)",
199+
name=f"{config.tracker_dub_tag} (sets whether you prefer to watch a particular anime in dub)",
200200
)
201201
)
202202

203203
if config.tracker_ignore_tag:
204204
choices.append(
205205
Choice(
206206
value=config.tracker_ignore_tag,
207-
name=f"{config.tracker_ignore_tag} (sets wheter anipy-cli will ignore a particular anime)",
207+
name=f"{config.tracker_ignore_tag} (sets whether anipy-cli will ignore a particular anime)",
208208
)
209209
)
210210

cli/src/anipy_cli/menus/mal_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ def tag_anime(self):
193193
choices.append(
194194
Choice(
195195
value=config.tracker_dub_tag,
196-
name=f"{config.tracker_dub_tag} (sets wheter you prefer to watch a particular anime in dub)",
196+
name=f"{config.tracker_dub_tag} (sets whether you prefer to watch a particular anime in dub)",
197197
)
198198
)
199199

200200
if config.tracker_ignore_tag:
201201
choices.append(
202202
Choice(
203203
value=config.tracker_ignore_tag,
204-
name=f"{config.tracker_ignore_tag} (sets wheter anipy-cli will ignore a particular anime)",
204+
name=f"{config.tracker_ignore_tag} (sets whether anipy-cli will ignore a particular anime)",
205205
)
206206
)
207207

cli/src/anipy_cli/prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def migrate_provider(mode: str, local_list: "LocalList"):
377377
if best_ratio >= config.mal_mapping_min_similarity:
378378
local_list.delete(s)
379379
else:
380-
print(f"Could not autmatically map {s.name}, you can map it manually.")
380+
print(f"Could not automatically map {s.name}, you can map it manually.")
381381
best_anime = search_show_prompt("seasonal", skip_season_search=True)
382382
if best_anime is None:
383383
continue

cli/src/anipy_cli/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,11 @@ def convert_letter_to_season(letter: str) -> Optional[str]:
254254

255255

256256
def migrate_locallist(file: Path) -> LocalListData:
257-
error(f"{file} is in an unsuported format...")
257+
error(f"{file} is in an unsupported format...")
258258

259259
new_list = LocalListData({})
260260
choice = inquirer.confirm( # type: ignore
261-
message="Should it be delted?",
261+
message="Should it be deleted?",
262262
default=False,
263263
).execute()
264264
if choice:

docs/contributing/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Hey, thanks for considering to contribute!
55
If you did this before you probably know the gist, but check out this little guide to get everything set-up!
66

77
## Setup environment for code/docs changes
8-
1. Install [Poetry](https://python-poetry.org/docs/#installation) for project managment, it is like pip but better and feature-richer. You can work on this project without it, but I highly recommend not to do this.
8+
1. Install [Poetry](https://python-poetry.org/docs/#installation) for project management, it is like pip but better and feature-richer. You can work on this project without it, but I highly recommend not to do this.
99
2. Clone: `git clone https://github.com/sdaqo/anipy-cli && cd anipy-cli`
1010
3. Initiate your environment: `poetry install --with dev,docs`, this installs all the dependencies and some development tools.
1111
4. (Optional) If you are working on the API and you want to be able to test your changes in the cli, you can run `poetry run poe enter-dev`. (this changes the api dependency to the local `../api`)
12-
5. Open your edior, you can either run `poetry run <your-editor>` or `poetry shell` to get a shell in the virtual environment and run your editor from there, some editors like vscode automatically enter the venv as far as I know.
12+
5. Open your editor, you can either run `poetry run <your-editor>` or `poetry shell` to get a shell in the virtual environment and run your editor from there, some editors like vscode automatically enter the venv as far as I know.
1313
6. Make your changes :)
1414
7. Check your changes
1515
- Run `poetry run anipy-cli` to run the cli.
1616
- Run `poetry run python` to run python from the virtual environment.
1717
- Run `poetry run poe docs-serve` to open host the docs locally, this is helpful if you are making changes to the docs.
18-
8. Run `poetry run poe polish` before commiting to format and lint your code. The linter will tell you what you did wrong, fix that if you think the suggestion from the linter is reasonable, if not don't bother. Also, please do not concern yourself with linter errors that you did not introduce!
18+
8. Run `poetry run poe polish` before committing to format and lint your code. The linter will tell you what you did wrong, fix that if you think the suggestion from the linter is reasonable, if not don't bother. Also, please do not concern yourself with linter errors that you did not introduce!
1919
9. Run `poetry run poe exit-dev` if you ran the command in step 4.
2020
10. Push & Pull Request!
2121

@@ -24,11 +24,11 @@ If you did this before you probably know the gist, but check out this little gui
2424
.
2525
├── api
2626
│   ├── pyproject.toml # spec file for api
27-
│   └── src
27+
│   └── src
2828
│   └── anipy_api # api source
2929
├── cli
3030
│   ├── pyproject.toml # spec file for cli
31-
│   └── src
31+
│   └── src
3232
│   └── anipy_cli # cli source
3333
├── docs # documentation
3434
│   └── ...

docs/getting-started-api/examples/myanimelist.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Uhm, I did not find a proper implementation of the MyAnimeList v2 api for
44
python... so yeah.
55

66
There is also support for [anilist](https://anilist.co/), the usage is generally the same,
7-
exepect for authentication.
8-
For the API docs please see [AniList][anipy_api.anilist.AniList] and [AniListAdapter][anipy_api.anilist.AniListAdapter]
7+
exepect for authentication.
8+
For the API docs please see [AniList][anipy_api.anilist.AniList] and [AniListAdapter][anipy_api.anilist.AniListAdapter]
99
also check [anilist_cli.py](https://github.com/sdaqo/anipy-cli/blob/master/cli/src/anipy_cli/clis/anilist_cli.py) for a implementation example.
10-
10+
1111
## Authentication
1212

1313
The [MyAnimeList][anipy_api.mal.MyAnimeList] class implement basic
@@ -32,7 +32,7 @@ mal = MyAnimeList.from_rt_grant(
3232
1. Those functions may throw a
3333
[MyAnimeListError][anipy_api.error.MyAnimeListError] when auth fails, wrap
3434
them in a try/except.
35-
2. Please note that that currently no complex oauth autentication scheme is
35+
2. Please note that that currently no complex oauth authentication scheme is
3636
implemented, this client uses the client id of the official MyAnimeList
3737
android app, this gives us the ability to login via a username/password
3838
combination. If you pass your own client id you will not be able to use the
@@ -98,10 +98,10 @@ add that to your myanimelist, but you do not know which mal anime that is. The
9898
[MyAnimeListAdapter][anipy_api.mal.MyAnimeListAdapter] class can handle that for
9999
you.
100100

101-
BUT this does not always work, there is a possibilty that the adapter can not
101+
BUT this does not always work, there is a possibility that the adapter can not
102102
match the anime, this class uses the
103103
[Levenshtein Distance](https://en.wikipedia.org/wiki/Levenshtein_distance)
104-
algorithm to calculate the similiarty between names, you can tweak its
104+
algorithm to calculate the similarity between names, you can tweak its
105105
parameters and also other stuff to ensure you get a match.
106106

107107
```python
@@ -136,7 +136,7 @@ if anime is not None:
136136

137137
1. The provider to or from which you want to adapt.
138138
2. The minimum accepted similarity ratio. This should be a number from 0-1, 1
139-
meaning the names are identical 0 meaning there are no identical charachters
139+
meaning the names are identical 0 meaning there are no identical characters
140140
whatsoever. If it is not met the function will return None.
141141
3. With this the alternative names will also be checked if available. This
142142
improves chances of matching but may take longer.

docs/getting-started-api/examples/player.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ mpv_player.play_file("/some/file.mp4") # (2)
3232
1. You can also use the [list_players][anipy_api.player.player.list_players] function to get a list of players.
3333
2. With the [play_file][anipy_api.player.base.PlayerBase.play_file] function you can play local files.
3434

35-
You can also use the mpv-controllable player, it wraps the [python-mpv](https://github.com/jaseg/python-mpv?tab=readme-ov-file#usage)
36-
player which uses libmpv, check python-mpv's readme to know how to get libmpv. This allows you to controll the player in the code, check this out:
35+
You can also use the mpv-controllable player, it wraps the [python-mpv](https://github.com/jaseg/python-mpv?tab=readme-ov-file#usage)
36+
player which uses libmpv, check python-mpv's readme to know how to get libmpv. This allows you to control the player in the code, check this out:
3737
```python
3838
from anipy_api.player import get_player, list_players
3939
from anipy_api.anime import Anime
@@ -44,7 +44,7 @@ def on_play(anime: Anime, stream: ProviderStream):
4444

4545
mpv_controllable_player = get_player(
4646
"mpv-controllable",
47-
play_callback=on_play
47+
play_callback=on_play
4848
# (1)
4949
)
5050

0 commit comments

Comments
 (0)