Skip to content

Commit 652b0d8

Browse files
committed
Fix ruff
1 parent ca5069f commit 652b0d8

File tree

9 files changed

+111
-115
lines changed

9 files changed

+111
-115
lines changed

test/test_duals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_addition():
121121
V = FunctionSpace(domain_2d, f_2d)
122122
V_dual = V.dual()
123123

124-
fvector_2d = FiniteElement("Lagrange", triangle, 1, (2, ), identity_pullback, H1)
124+
fvector_2d = FiniteElement("Lagrange", triangle, 1, (2,), identity_pullback, H1)
125125
W = FunctionSpace(domain_2d, fvector_2d)
126126

127127
u = TrialFunction(V)

ufl/__init__.py

Lines changed: 108 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -44,147 +44,147 @@
4444
4545
* Cells::
4646
47-
- AbstractCell
48-
- Cell
49-
- TensorProductCell
50-
- vertex
51-
- interval
52-
- triangle
53-
- tetrahedron
54-
- quadrilateral
55-
- hexahedron
56-
- prism
57-
- pyramid
58-
- pentatope
59-
- tesseract
47+
-AbstractCell
48+
-Cell
49+
-TensorProductCell
50+
-vertex
51+
-interval
52+
-triangle
53+
-tetrahedron
54+
-quadrilateral
55+
-hexahedron
56+
-prism
57+
-pyramid
58+
-pentatope
59+
-tesseract
6060
6161
* Domains::
6262
63-
- AbstractDomain
64-
- Mesh
65-
- MeshView
63+
-AbstractDomain
64+
-Mesh
65+
-MeshView
6666
6767
* Sobolev spaces::
6868
69-
- L2
70-
- H1
71-
- H2
72-
- HInf
73-
- HDiv
74-
- HCurl
75-
- HEin
76-
- HDivDiv
69+
-L2
70+
-H1
71+
-H2
72+
-HInf
73+
-HDiv
74+
-HCurl
75+
-HEin
76+
-HDivDiv
7777
7878
7979
* Pull backs::
8080
81-
- identity_pullback
82-
- contravariant_piola
83-
- covariant_piola
84-
- l2_piola
85-
- double_contravariant_piola
86-
- double_covariant_piola
81+
-identity_pullback
82+
-contravariant_piola
83+
-covariant_piola
84+
-l2_piola
85+
-double_contravariant_piola
86+
-double_covariant_piola
8787
8888
* Function spaces::
8989
90-
- FunctionSpace
91-
- MixedFunctionSpace
90+
-FunctionSpace
91+
-MixedFunctionSpace
9292
9393
* Arguments::
9494
95-
- Argument
96-
- TestFunction
97-
- TrialFunction
98-
- Arguments
99-
- TestFunctions
100-
- TrialFunctions
95+
-Argument
96+
-TestFunction
97+
-TrialFunction
98+
-Arguments
99+
-TestFunctions
100+
-TrialFunctions
101101
102102
* Coefficients::
103103
104-
- Coefficient
105-
- Constant
106-
- VectorConstant
107-
- TensorConstant
104+
-Coefficient
105+
-Constant
106+
-VectorConstant
107+
-TensorConstant
108108
109109
* Splitting form arguments in mixed spaces::
110110
111-
- split
111+
-split
112112
113113
* Literal constants::
114114
115-
- Identity
116-
- PermutationSymbol
115+
-Identity
116+
-PermutationSymbol
117117
118118
* Geometric quantities::
119119
120-
- SpatialCoordinate
121-
- FacetNormal
122-
- CellNormal
123-
- CellVolume
124-
- CellDiameter
125-
- Circumradius
126-
- MinCellEdgeLength
127-
- MaxCellEdgeLength
128-
- FacetArea
129-
- MinFacetEdgeLength
130-
- MaxFacetEdgeLength
131-
- Jacobian
132-
- JacobianDeterminant
133-
- JacobianInverse
120+
-SpatialCoordinate
121+
-FacetNormal
122+
-CellNormal
123+
-CellVolume
124+
-CellDiameter
125+
-Circumradius
126+
-MinCellEdgeLength
127+
-MaxCellEdgeLength
128+
-FacetArea
129+
-MinFacetEdgeLength
130+
-MaxFacetEdgeLength
131+
-Jacobian
132+
-JacobianDeterminant
133+
-JacobianInverse
134134
135135
* Indices::
136136
137-
- Index
138-
- indices
139-
- i, j, k, l
140-
- p, q, r, s
137+
-Index
138+
-indices
139+
-i, j, k, l
140+
-p, q, r, s
141141
142142
* Scalar to tensor expression conversion::
143143
144-
- as_tensor
145-
- as_vector
146-
- as_matrix
144+
-as_tensor
145+
-as_vector
146+
-as_matrix
147147
148148
* Unit vectors and matrices::
149149
150-
- unit_vector
151-
- unit_vectors
152-
- unit_matrix
153-
- unit_matrices
150+
-unit_vector
151+
-unit_vectors
152+
-unit_matrix
153+
-unit_matrices
154154
155155
* Tensor algebra operators::
156156
157-
- outer, inner, dot, cross, perp
158-
- det, inv, cofac
159-
- transpose, tr, diag, diag_vector
160-
- dev, skew, sym
157+
-outer, inner, dot, cross, perp
158+
-det, inv, cofac
159+
-transpose, tr, diag, diag_vector
160+
-dev, skew, sym
161161
162162
* Elementwise tensor operators::
163163
164-
- elem_mult
165-
- elem_div
166-
- elem_pow
167-
- elem_op
164+
-elem_mult
165+
-elem_div
166+
-elem_pow
167+
-elem_op
168168
169169
* Differential operators::
170170
171-
- variable
172-
- diff,
173-
- grad, nabla_grad
174-
- div, nabla_div
175-
- curl, rot
176-
- Dx, Dn
171+
-variable
172+
(-diff,)
173+
-grad, nabla_grad
174+
-div, nabla_div
175+
-curl, rot
176+
-Dx, Dn
177177
178178
* Nonlinear functions::
179179
180-
- max_value, min_value
181-
- abs, sign
182-
- sqrt
183-
- exp, ln, erf
184-
- cos, sin, tan
185-
- acos, asin, atan, atan2
186-
- cosh, sinh, tanh
187-
- bessel_J, bessel_Y, bessel_I, bessel_K
180+
-max_value, min_value
181+
-abs, sign
182+
-sqrt
183+
-exp, ln, erf
184+
-cos, sin, tan
185+
-acos, asin, atan, atan2
186+
-cosh, sinh, tanh
187+
-bessel_J, bessel_Y, bessel_I, bessel_K
188188
189189
* Complex operations::
190190
@@ -193,10 +193,10 @@
193193
194194
* Discontinuous Galerkin operators::
195195
196-
- v('+'), v('-')
197-
- jump
198-
- avg
199-
- cell_avg, facet_avg
196+
-v("+"), v("-")
197+
-jump
198+
-avg
199+
-cell_avg, facet_avg
200200
201201
* Conditional operators::
202202
@@ -207,21 +207,21 @@
207207
208208
* Integral measures::
209209
210-
- dx, ds, dS, dP
211-
- dc, dC, dO, dI, dX
212-
- ds_b, ds_t, ds_tb, ds_v, dS_h, dS_v
210+
-dx, ds, dS, dP
211+
-dc, dC, dO, dI, dX
212+
-ds_b, ds_t, ds_tb, ds_v, dS_h, dS_v
213213
214214
* Form transformations::
215215
216-
- rhs, lhs
217-
- system
218-
- functional
219-
- replace
220-
- adjoint
221-
- action
222-
- energy_norm,
223-
- sensitivity_rhs
224-
- derivative
216+
-rhs, lhs
217+
-system
218+
-functional
219+
-replace
220+
-adjoint
221+
-action
222+
(-energy_norm,)
223+
-sensitivity_rhs
224+
-derivative
225225
"""
226226

227227
# Copyright (C) 2008-2016 Martin Sandve Alnæs and Anders Logg

ufl/algorithms/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# recommended to use. The __all__ list below is a start based
1515
# on grepping of other FEniCS code for ufl.algorithm imports.
1616

17-
1817
__all__ = [
1918
"estimate_total_polynomial_degree",
2019
"sort_elements",

ufl/algorithms/apply_restrictions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#
1111
# SPDX-License-Identifier: LGPL-3.0-or-later
1212

13-
1413
from ufl.algorithms.map_integrands import map_integrand_dags
1514
from ufl.classes import Restricted
1615
from ufl.corealg.map_dag import map_expr_dag

ufl/algorithms/check_arities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Check arities."""
2+
23
from itertools import chain
34

45
from ufl.classes import Argument, Zero

ufl/compound_expressions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88
# Modified by Anders Logg, 2009-2010
99

10-
1110
from ufl.constantvalue import Zero, zero
1211
from ufl.core.multiindex import Index, indices
1312
from ufl.operators import sqrt

ufl/core/multiindex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#
99
# Modified by Massimiliano Leoni, 2016.
1010

11-
1211
from ufl.core.terminal import Terminal
1312
from ufl.core.ufl_type import ufl_type
1413
from ufl.utils.counted import Counted

ufl/formatting/ufl2unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class UC:
196196
left_double_angled_bracket = "⟪"
197197
right_double_angled_bracket = "⟫"
198198

199-
combining_right_arrow_above = "\u20D7"
199+
combining_right_arrow_above = "\u20d7"
200200
combining_overline = "\u0305"
201201

202202

ufl/indexsum.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#
77
# SPDX-License-Identifier: LGPL-3.0-or-later
88

9-
109
from ufl.constantvalue import Zero
1110
from ufl.core.expr import Expr, ufl_err_str
1211
from ufl.core.multiindex import MultiIndex

0 commit comments

Comments
 (0)