Skip to content

Commit c5cee14

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent efec293 commit c5cee14

File tree

11 files changed

+6
-15
lines changed

11 files changed

+6
-15
lines changed

lectures/pandas/PublicAPIs.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3320,9 +3320,9 @@
33203320
"source": [
33213321
"url = \"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.5&lon=0\"\n",
33223322
"s = requests.Session()\n",
3323-
"s.headers[\n",
3324-
" \"User-Agent\"\n",
3325-
"] = \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
3323+
"s.headers[\"User-Agent\"] = (\n",
3324+
" \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
3325+
")\n",
33263326
"r = s.get(url)\n",
33273327
"r"
33283328
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .cli import main
22

33
if __name__ == "__main__":
4-
main()
4+
main()

lectures/python/exercises.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@
404404
"metadata": {},
405405
"outputs": [],
406406
"source": [
407-
"class Square(...):\n",
408-
" ...\n",
407+
"class Square(...): ...\n",
409408
"\n",
410409
"\n",
411410
"sq = Square(5)\n",

lectures/python/point.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
class Point:
55
"""Class representing a 2-D Cartesian point"""
66

7-
def __init__(self, x, y):
8-
...
7+
def __init__(self, x, y): ...
98

109
def __repr__(self):
1110
return f"Point({self.x}, {self.y})"

lectures/web-servers/monty-hall-game/game_server2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- The template contains a form with a POST request to the /reselect.
1212
"""
1313

14-
1514
from fastapi import FastAPI, Request
1615
from fastapi.responses import HTMLResponse
1716
from fastapi.templating import Jinja2Templates

lectures/web-servers/monty-hall-game/game_server3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
and displays it in the reselect3.html template
1313
"""
1414

15-
1615
from fastapi import FastAPI, Form, Request
1716
from fastapi.responses import HTMLResponse
1817
from fastapi.templating import Jinja2Templates

lectures/web-servers/monty-hall-game/game_server4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
2323
"""
2424

25-
2625
import random
2726
import uuid
2827

lectures/web-servers/monty-hall-game/game_server6.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
information
1414
"""
1515

16-
1716
import random
1817
import uuid
1918
from statistics import mean

lectures/web-servers/monty-hall-game/game_server7.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
information
1414
"""
1515

16-
1716
import random
1817
import uuid
1918
from statistics import mean

lectures/web-servers/monty-hall-game/game_server_rest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
information
1414
"""
1515

16-
1716
import random
1817
import uuid
1918
from functools import partial

0 commit comments

Comments
 (0)