Skip to content

Commit

Permalink
Merge branch 'master' into adding-pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emarondan authored Nov 6, 2024
2 parents 22bcead + 9e06e1c commit 787f643
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ jobs:
- python-version: "3.10"
env:
TOXENV: py
- python-version: "3.10"
- python-version: "3.11"
env:
TOXENV: py
- python-version: "3.12"
env:
TOXENV: py
- python-version: "3.13"
env:
TOXENV: py
- python-version: "3.13"
env:
TOXENV: mypy

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions price_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def fromstring(
currency = extract_currency_symbol(price, currency_hint)
if currency is not None:
currency = currency.strip()
if digit_group_separator and price is not None:
price = price.replace(digit_group_separator, "")
if digit_group_separator is not None and price is not None:
price = price.replace(digit_group_separator, '')
amount_text = extract_price_text(price) if price is not None else None
amount_num = (
parse_number(amount_text, decimal_separator)
Expand Down
23 changes: 14 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@
],
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,mypy
envlist = py36,py37,py38,py39,py310,py311,py312,py313,mypy

[testenv]
deps =
Expand Down

0 comments on commit 787f643

Please sign in to comment.