Skip to content

Commit

Permalink
Merge branch 'main' into calendar_frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jun 30, 2024
2 parents eefe2c3 + 4c2e388 commit 173fe86
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 197 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ repos:
- id: python-check-blanket-noqa
- id: python-use-type-annotations
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
rev: v0.5.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
rev: 1.7.9
hooks:
- id: bandit
args: [ "-c", "pyproject.toml" ]
Expand Down
2 changes: 1 addition & 1 deletion data/external/scrapers/tumonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _sanitise_room_value(val: dict) -> dict:
"zip_code": val.pop("address_zip_code"),
}
if "alt_name" in val:
val["alt_name"] = _clean_spaces(val["alt_name"])
val["alt_name"] = _clean_spaces(val["alt_name"]).replace(" ( ", " (")
val["floor_level"] = val.pop("address_floor")
val["seats"] = {
"sitting": val.pop("seats", None),
Expand Down
1 change: 1 addition & 0 deletions data/processors/tumonline.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,4 @@ def _maybe_set_alt_name(room_code: str, arch_name_parts: tuple[str, str], room:
logging.debug(
f"(alt_name / arch_name mismatch): {alt_parts[0]=} {arch_name_parts[0]=} {room_code=}",
)
room.alt_name = room.alt_name.strip()
26 changes: 13 additions & 13 deletions data/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
backoff~=2.2.1
beautifulsoup4~=4.12.2
defusedxml~=0.7.1
lxml~=5.2.0
numba~=0.60.0
Pillow~=10.3.0
pydantic~=2.7.0
pyyaml~=6.0
requests~=2.32.2
requests-oauthlib~=2.0.0
ruamel.yaml~=0.18.5
tqdm~=4.66.0
utm~=0.7.0
backoff==2.2.1
beautifulsoup4==4.12.3
defusedxml==0.7.1
lxml==5.2.2
numba==0.60.0
Pillow==10.3.0
pydantic==2.7.4
pyyaml==6.0.1
requests==2.32.3
requests-oauthlib==2.0.0
ruamel.yaml==0.18.6
tqdm==4.66.4
utm==0.7.0
16 changes: 8 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mypy~=1.10.0
pre-commit~=3.7.0
pytest~=8.2.0
ruff~=0.5.0
types-Pillow~=10.2.0.20240111
types-PyYAML~=6.0.12.10
types-requests~=2.32.0.20240521
types-termcolor~=1.1.6.2
mypy==1.10.1
pre-commit==3.7.1
pytest==8.2.2
ruff==0.5.0
types-Pillow==10.2.0.20240520
types-PyYAML==6.0.12.20240311
types-requests==2.32.0.20240622
types-termcolor==1.1.6.2
Loading

0 comments on commit 173fe86

Please sign in to comment.