Skip to content

Commit

Permalink
Some cleanup; upgrade docker OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed Apr 15, 2024
1 parent 6bcf7bd commit cc11c89
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-bullseye
FROM python:3.10-slim-bookworm

RUN apt update
RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-dev
Expand Down
17 changes: 0 additions & 17 deletions scriptshifter/hooks/general/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
from scriptshifter.trans import MULTI_WS_RE


NORM_MAP = (
(" .", "."),
(" ;", ";"),
(" ,", ","),
("( ", "("),
("[ ", "["),
("{ ", "{"),
(" )", ")"),
(" ]", "]"),
(" }", "}"),
("- -", "--"),
)

NORM1_RE = compile(r"([.,;:\)\]}])\s")
NORM2_RE = compile(r"(\S)([.,;:\)\]}])")
NORM3_RE = compile(r"\s([\)\]\}])")
Expand All @@ -41,8 +28,4 @@ def normalize_spacing_post_assembly(ctx):
norm = NORM3_RE.sub(r"\1", norm)
norm = NORM4_RE.sub(r"\1 \2", norm)

# Normalize spacing around punctuation and parentheses.
for a, b in NORM_MAP:
norm = norm.replace(a, b)

return norm
1 change: 0 additions & 1 deletion scriptshifter/tables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

# Available hook names.
HOOKS = (
"pre_config",
"post_config",
"post_normalize",
"begin_input_token",
Expand Down

0 comments on commit cc11c89

Please sign in to comment.