Skip to content

Commit

Permalink
🐛 euros formatting
Browse files Browse the repository at this point in the history
closes #7
  • Loading branch information
juftin committed Dec 11, 2024
1 parent 529bcbd commit d2eab76
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
fail-fast: true
matrix:
include:
- { name: Python 3.13, python: "3.13" }
- { name: Python 3.12, python: "3.12" }
- { name: Python 3.11, python: "3.11" }
- { name: Python 3.10, python: "3.10" }
Expand Down
3 changes: 3 additions & 0 deletions lunchable_primelunch/primelunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ def _extract_total_from_payments(cls, df: pd.DataFrame) -> pd.DataFrame:
currency_matcher
)
exploded_totals = exploded_totals.explode("parsed_total", ignore_index=True)
exploded_totals["parsed_total"] = exploded_totals["parsed_total"].str.replace(
",", ".", regex=False
)
exploded_totals["parsed_total"] = exploded_totals["parsed_total"].str.replace(
"[^0-9.]", "", regex=True
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pip-compile-constraint = ""
template = "test"

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

[tool.hatch.envs.default]
pip-compile-constraint = "default"
Expand Down
4 changes: 1 addition & 3 deletions requirements/requirements-all.py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ click==8.1.7
click-plugins==1.1.1
# via lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
exceptiongroup==1.2.0
# via
# anyio
Expand Down
4 changes: 1 addition & 3 deletions requirements/requirements-all.py3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ click==8.1.7
click-plugins==1.1.1
# via lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
h11==0.14.0
# via httpcore
httpcore==1.0.2
Expand Down
4 changes: 1 addition & 3 deletions requirements/requirements-all.py3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ click==8.1.7
click-plugins==1.1.1
# via lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
h11==0.14.0
# via httpcore
httpcore==1.0.2
Expand Down
88 changes: 88 additions & 0 deletions requirements/requirements-all.py3.13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#
# This file is autogenerated by hatch-pip-compile with Python 3.13
#
# - pytest
# - pytest-cov
# - click
# - lunchable>=1.2.1
# - pandas
# - rich
#

annotated-types==0.7.0
# via pydantic
anyio==4.7.0
# via httpx
certifi==2024.8.30
# via
# httpcore
# httpx
click==8.1.7
# via
# hatch.envs.all.py3.13
# click-plugins
# lunchable
click-plugins==1.1.1
# via lunchable
coverage==7.6.9
# via pytest-cov
h11==0.14.0
# via httpcore
httpcore==1.0.7
# via httpx
httpx==0.28.1
# via lunchable
idna==3.10
# via
# anyio
# httpx
importlib-metadata==8.5.0
# via lunchable
iniconfig==2.0.0
# via pytest
lunchable==1.4.1
# via hatch.envs.all.py3.13
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
numpy==2.2.0
# via pandas
packaging==24.2
# via pytest
pandas==2.2.3
# via hatch.envs.all.py3.13
pluggy==1.5.0
# via pytest
pydantic==2.10.3
# via lunchable
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
pytest==8.3.4
# via
# hatch.envs.all.py3.13
# pytest-cov
pytest-cov==6.0.0
# via hatch.envs.all.py3.13
python-dateutil==2.9.0.post0
# via pandas
pytz==2024.2
# via pandas
rich==13.9.4
# via
# hatch.envs.all.py3.13
# lunchable
six==1.17.0
# via python-dateutil
sniffio==1.3.1
# via anyio
typing-extensions==4.12.2
# via
# pydantic
# pydantic-core
tzdata==2024.2
# via pandas
zipp==3.21.0
# via importlib-metadata
4 changes: 1 addition & 3 deletions requirements/requirements-all.py3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ click==8.1.7
click-plugins==1.1.1
# via lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
exceptiongroup==1.2.0
# via
# anyio
Expand Down
4 changes: 1 addition & 3 deletions requirements/requirements-all.py3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ click==8.1.7
click-plugins==1.1.1
# via lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
exceptiongroup==1.2.0
# via
# anyio
Expand Down
4 changes: 1 addition & 3 deletions requirements/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ click-plugins==1.1.1
# -c requirements.txt
# lunchable
coverage==7.4.0
# via
# coverage
# pytest-cov
# via pytest-cov
h11==0.14.0
# via
# -c requirements.txt
Expand Down

0 comments on commit d2eab76

Please sign in to comment.