Skip to content

Commit 4cefc1b

Browse files
Bump ruff from 0.14.0 to 0.14.1 (#4117)
* Bump ruff from 0.14.0 to 0.14.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.0 to 0.14.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.14.0...0.14.1) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.14.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Updated dependencies in requirements files [skip dependency] * Updated pre-commit [skip dependency] * 📝 Docs fixes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: james <[email protected]>
1 parent 9926f56 commit 4cefc1b

File tree

41 files changed

+77
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+77
-137
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ repos:
1212
exclude: test_data
1313

1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.14.0
15+
rev: v0.14.1
1616
hooks:
1717
- id: ruff-check
1818
args: [--fix]
1919
- id: ruff-format
2020

2121
- repo: https://github.com/biomejs/pre-commit
22-
rev: v2.2.5
22+
rev: v2.2.6
2323
hooks:
2424
- id: biome-format
2525
types: [json]

bluemira/balance_of_plant/plotting.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,6 @@ def plot(self, flow_dict: dict[str, list[float]], title: str = "") -> Axes:
260260
261261
Parameters
262262
----------
263-
inputs: dict
264-
The inputs to BalanceOfPlant (used here to format the title)
265-
op_mode: str
266-
The operation mode of the reactor
267263
flow_dict: dict
268264
The dictionary of flows for each of the Sankey diagrams.
269265

bluemira/base/parameter_frame/_frame.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,6 @@ def tabulation_data(
459459
----------
460460
keys:
461461
table column keys
462-
tablefmt:
463-
The format of the table (default="fancy_grid") - see
464-
https://github.com/astanin/python-tabulate#table-format
465462
floatfmt:
466463
Format floats to this precision
467464
value_label:

bluemira/base/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ def build_comp_manager_show_cad_tree(
601601
Component manager
602602
dim:
603603
Dimension to build the CAD in
604-
component_filter:
605-
Filter to apply to the components
604+
construction_params:
605+
Parameters for the construction of CAD.
606606
607607
Returns
608608
-------

bluemira/codes/_freecadapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@ def collect_verts_faces(
28072807
----------
28082808
solid:
28092809
FreeCAD Part
2810-
tessellation:
2810+
tesselation:
28112811
amount of tessellation for the mesh
28122812
28132813
Returns

bluemira/codes/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def modify_mappings(self, send_recv: dict[str, dict[str, bool]]):
356356
357357
Parameters
358358
----------
359-
mappings:
359+
send_recv:
360360
A dictionary where keys are variables to change the mappings
361361
of, and values specify 'send', and or, 'recv' booleans.
362362

bluemira/codes/openmc/make_csg.py

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,6 @@ def make_cell_arrays(
720720
721721
Parameters
722722
----------
723-
materials:
724-
library containing information about the materials
725-
tokamak_dimensions:
726-
A parameter
727-
:class:`bluemira.radiation_transport.neutronics.params.TokamakDimensions`,
728-
Specifying the dimensions of various layers in the blanket, divertor, and
729-
central solenoid.
730723
control_id: bool
731724
Whether to set the blanket Cells and surface IDs by force or not.
732725
With this set to True, it will be easier to understand where each cell came
@@ -1402,25 +1395,27 @@ def from_pre_cell(
14021395
14031396
Parameters
14041397
----------
1405-
pre_cell
1398+
pre_cell:
14061399
An instance of :class:`~PreCell`
1407-
ccw_surf
1400+
ccw_surface:
14081401
An instance of :class:`openmc.surface.Surface`
1409-
cw_surf
1402+
cw_surface:
14101403
An instance of :class:`openmc.surface.Surface`
1411-
depth_series
1404+
depth_series:
14121405
a series of floats corresponding to the N-2 interfaces between the N-1
14131406
layers, whereas the N-th layer is the vacuum vessel (and the pre-cell has
14141407
already stored the thickness for that).
14151408
Each float represents how deep into the blanket (i.e. how many [cm] into the
14161409
first wall we need to drill, from the plasma facing surface) to hit that
14171410
interface layer.
1418-
fill_lib
1411+
csg:
1412+
CSG reactor CAD
1413+
fill_lib:
14191414
:class:`~MaterialsLibrary` so that it separates into .inboard, .outboard,
14201415
.divertor, .tf_coil_windings, etc.
1421-
inboard
1416+
inboard:
14221417
boolean denoting whether this cell is inboard or outboard
1423-
blanket_stack_num
1418+
blanket_stack_num:
14241419
An optional number indexing the current stack. Used for labelling.
14251420
If None: we will not be controlling the cell and surfaces id.
14261421
@@ -1639,8 +1634,8 @@ def interior_vertices(self) -> npt.NDArray:
16391634
Returns all of the tokamak's poloidal cross-section's inside corners'
16401635
coordinates, in 3D.
16411636
1642-
Parameters
1643-
----------
1637+
Returns
1638+
-------
16441639
interior_vertices:
16451640
array of shape (N+1, 3) arranged clockwise (inboard to outboard).
16461641
"""
@@ -2229,8 +2224,8 @@ def interior_vertices(self) -> npt.NDArray:
22292224
Returns all of the tokamak's poloidal cross-section's inside corners'
22302225
coordinates, in 3D.
22312226
2232-
Parameters
2233-
----------
2227+
Returns
2228+
-------
22342229
interior_vertices: npt.NDArray of shape (N+1, 3)
22352230
Arranged counter-clockwise (inboard to outboard).
22362231
"""

bluemira/codes/openmc/output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ def _load_volume_calculation_from_file(
149149
150150
Parameters
151151
----------
152-
volume_file_path
153-
154-
Cell_names
152+
volume_file_path:
153+
filepath to volume
154+
cell_names:
155155
indicative names to print.
156156
"""
157157
if volume_file_path.is_file():

bluemira/display/plotter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,6 @@ def plot_dolfinx_2d_mesh_plt(
12531253
Mapping from group ID to color.
12541254
cmap : str
12551255
Colormap for automatic coloring of groups.
1256-
show_nodes : bool
1257-
If True, plot red dots at node positions.
12581256
figsize : tuple
12591257
Size of the figure if ax is None.
12601258
title : str

bluemira/equilibria/analysis.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,6 @@ def plot_equilibria_with_profiles(
657657
658658
Parameters
659659
----------
660-
title:
661-
Title to be added at top of figure
662660
ax:
663661
List of Matplotlib Axes objects set by user
664662
show:
@@ -717,8 +715,6 @@ def plot_compare_separatrix(
717715
Matplotlib Axes objects set by user
718716
show:
719717
Whether or not to display the plot
720-
equilibrium_name:
721-
Name used in plot label
722718
723719
Returns
724720
-------
@@ -1191,10 +1187,6 @@ def coilset_info_table(self, value_type=CSData.CURRENT):
11911187
11921188
Parameters
11931189
----------
1194-
equilibria_dict:
1195-
Dictionary of equilibria load information.
1196-
Can be created using select_multi_eqs function.
1197-
Will set or reset the values used by MultiEqAnalysis.
11981190
value_type:
11991191
Choose the type of coilset data to be printed,
12001192
default is current values.
@@ -1249,8 +1241,6 @@ def plot_compare_profiles(
12491241
List of Matplotlib Axes objects set by user
12501242
header:
12511243
Text to be added at the top of the figure
1252-
show:
1253-
Whether or not to display the plot
12541244
n_points:
12551245
number of normalised psi points
12561246

0 commit comments

Comments
 (0)