Skip to content

Commit bf85223

Browse files
committed
Fixes
1 parent ed2e901 commit bf85223

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ jobs:
2626
tox-env: py312,py312-mypy,py312-lint,bandit
2727
- version: '3.13'
2828
tox-env: py313,py313-mypy,py313-lint,bandit
29+
# TODO: bandit doesn't currently work with 3.14
30+
# https://github.com/PyCQA/bandit/issues/1314
2931
- version: '3.14'
30-
tox-env: py314,py314-mypy,py314-lint,bandit,format
32+
tox-env: py314,py314-mypy,py314-lint,format
3133
- os: windows-latest
3234
version: '3.14'
33-
tox-env: py314,bandit
35+
tox-env: py314,py314-lint
3436
- os: macos-latest
3537
version: '3.14'
36-
tox-env: py313,bandit
38+
tox-env: py313,py314-lint
3739
steps:
3840
- uses: actions/checkout@v4
3941
- uses: actions/setup-python@v5

src/basilisp/lang/reader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import decimal
66
import functools
77
import io
8+
import math
89
import os
910
import re
1011
import uuid
@@ -1498,9 +1499,9 @@ def _read_regex(ctx: ReaderContext) -> Pattern:
14981499

14991500

15001501
_NUMERIC_CONSTANTS = {
1501-
"NaN": float("nan"),
1502-
"Inf": float("inf"),
1503-
"-Inf": -float("inf"),
1502+
"NaN": math.nan,
1503+
"Inf": math.inf,
1504+
"-Inf": -math.inf,
15041505
}
15051506

15061507

0 commit comments

Comments
 (0)