Skip to content

Commit 0e9bcf0

Browse files
authored
Merge pull request #884 from idaholab/dependabot/pip/black-gte-25.1-and-lt-27.0
Update black requirement from ~=25.1 to >=25.1,<27.0
2 parents 3887092 + 53136d8 commit 0e9bcf0

File tree

7 files changed

+4
-12
lines changed

7 files changed

+4
-12
lines changed

montepy/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import montepy.errors # deprecated
5353
import sys
5454

55-
5655
try:
5756
from . import _version
5857

montepy/data_inputs/material.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from montepy.utilities import *
1919
from montepy.particle import LibraryType
2020

21-
2221
MAX_PRINT_ELEMENTS: int = 5
2322
"""
2423
The maximum number of elements to print in a material string descripton.

montepy/input_parser/input_syntax_reader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from montepy.input_parser.read_parser import ReadParser
1616
from montepy.utilities import is_comment
1717

18-
1918
reading_queue = deque()
2019

2120

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ doc = [
6666
"jupyterlite-sphinx",
6767
"jupyterlite-pyodide-kernel"
6868
]
69-
format = ["black~=25.1"]
69+
format = ["black>=26.1,<27.0"]
7070
develop = [
7171
"montepy[test,doc,format]",
7272
]

tests/test_edge_cases.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def test_geometry_comments():
120120
:(-11536 97 -401 ) $ C 3 Lower water
121121
:(-11546 97 -401 ) $ C 4 Lower water
122122
:(-11556 97 -401 ) $ C 5 Lower water
123-
:(-11576 97 -401 ) imp:n=1 $ C 7 Lower water""".split(
124-
"\n"
125-
)
123+
:(-11576 97 -401 ) imp:n=1 $ C 7 Lower water""".split("\n")
126124
input_obj = montepy.input_parser.mcnp_input.Input(
127125
in_strs, montepy.input_parser.block_type.BlockType.CELL
128126
)

tests/test_material.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def big_material(_):
4747

4848
@pytest.fixture
4949
def parsed_material(_):
50-
return Material(
51-
"""M1 1001.00c 0.05
50+
return Material("""M1 1001.00c 0.05
5251
1001.04c 0.05
5352
1001.80c 0.05
5453
1001.04p 0.05
@@ -64,8 +63,7 @@ def parsed_material(_):
6463
95242 0.05
6564
27560.50c 0.05
6665
94239 0.05
67-
28000.60c 0.05"""
68-
)
66+
28000.60c 0.05""")
6967

7068
@pytest.fixture
7169
def materials(_, big_material, parsed_material):

tests/test_syntax_parsing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from montepy.exceptions import UndefinedBlock
1717
import warnings
1818

19-
2019
lat = montepy.data_inputs.lattice.LatticeType
2120
st = montepy.surfaces.surface_type.SurfaceType
2221

0 commit comments

Comments
 (0)