Skip to content

Commit e749d63

Browse files
committed
Fix typos with codespell
1 parent 0ec3a5f commit e749d63

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Point prediction
1717
<img src="images/predict.png" width=500>
1818

1919
# Features
20-
The features of JOMD are split up into seperate cogs each handling their related commands.
20+
The features of JOMD are split up into separate cogs, each handling its related commands.
2121

2222
### User Cog
2323
```
@@ -78,7 +78,7 @@ If you also want to add your DMOJ api token use
7878
export JOMD_TOKEN="INSERT DMOJ API TOKEN HERE"
7979
```
8080

81-
**JOMD also uses SQLAlchemy as a orm and Alembic as a migration tool. You need to make sure the database is upto date**
81+
**JOMD also uses SQLAlchemy as an ORM and Alembic as a migration tool. You need to make sure the database is up to date.**
8282

8383
**If you have cloned this repository before the addition of Alembic, find the corresponding hash in /alembic and run**
8484

extensions/contest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def ranklist(ctx):
7979
usernames.append((await query.get_user(arg)).username)
8080

8181
# The only way to calculate rating changes is by getting the volitility of all the users
82-
# that means 100+ seperate api calls
82+
# that means 100+ separate api calls
8383
# How does evan do it?
8484
# TODO: Use the custom api on evan's site
8585
import requests

extensions/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
class PeakConverter(base.BaseConverter[str]):
27-
"""Implementation of the base converter for converting arguments into a peak arguement."""
27+
"""Implementation of the base converter for converting arguments into a peak argument."""
2828

2929
__slots__ = ()
3030

@@ -37,7 +37,7 @@ async def convert(self, arg: str) -> str:
3737

3838

3939
class GraphTypeConverter(base.BaseConverter[str]):
40-
"""Implementation of the base converter for converting arguments into a graph type arguement."""
40+
"""Implementation of the base converter for converting arguments into a graph type argument."""
4141

4242
__slots__ = ()
4343

@@ -50,7 +50,7 @@ async def convert(self, arg: str) -> str:
5050

5151

5252
class PercentageConverter(base.BaseConverter[str]):
53-
"""Implementation of the base converter for converting arguments into a percentage arguement."""
53+
"""Implementation of the base converter for converting arguments into a percentage argument."""
5454

5555
__slots__ = ()
5656

utils/jomd_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def convert(self, arg: str) -> t.List[int]:
3434
if "-" in arg:
3535
arg = arg.split("-")
3636
if len(arg) != 2:
37-
raise TypeError("Too many arguements, invalid range")
37+
raise TypeError("Too many arguments, invalid range")
3838
return list(map(int, arg))
3939
point_high = point_low = int(arg)
4040
return [point_high, point_low]

utils/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ async def get_submissions(
324324
self, user: str = None, problem: str = None, language: str = None, result: str = None
325325
) -> List[Submission_DB]:
326326
# This function is the only one which might take a while to run and
327-
# has data that is added reguarly. asyncio.gather can apply to all
327+
# has data that is added regularly. asyncio.gather can apply to all
328328
# functions but this one is the only one which really needs it
329329
a = API()
330330
page = 1
@@ -333,7 +333,7 @@ async def get_submissions(
333333
start = time.time()
334334
await a.get_submissions(user=user, problem=problem, language=language, result=result, page=page)
335335

336-
logger.info("Got submissions for %s, time elasped %s", user, time.time() - start)
336+
logger.info("Got submissions for %s, time elapsed %s", user, time.time() - start)
337337
start = time.time()
338338
q = session.query(Submission_DB)
339339
q = q.filter(Submission_DB._user == user)

0 commit comments

Comments
 (0)