File tree 2 files changed +36
-2
lines changed
2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Linting
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.py'
7
+ pull_request :
8
+ paths :
9
+ - ' **.py'
10
+
11
+ jobs :
12
+ Linting :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-python@v4
17
+ with :
18
+ python-version : 3.x
19
+ - name : Install Project
20
+ run : |
21
+ python -m pip install --upgrade pip
22
+ python -m pip install .[lint]
23
+ - name : Run Black
24
+ if : always()
25
+ run : |
26
+ black --check --verbose src tests
27
+ - name : Run Ruff
28
+ if : always()
29
+ run : |
30
+ ruff src
31
+ - name : Run MyPy
32
+ if : always()
33
+ run : |
34
+ mypy src
Original file line number Diff line number Diff line change 31
31
32
32
@dataclass (frozen = True )
33
33
class Sigma :
34
- """Collection of signs of various quantities"""
34
+ """Collection of signs of various quantities. """
35
35
36
36
B_poloidal : int
37
37
r_phi_z : int
@@ -167,7 +167,7 @@ def identify_cocos(
167
167
sigma_rpz = - 1 if clockwise_phi else 1
168
168
sigma_rtp = sign_q * sign_plasma_current * sign_b_toroidal
169
169
170
- # identify 2*pi term in poloidal_flux definition based on safety_factor estimate
170
+ # identify 2*pi term in poloidal_flux definition based on safety_factor estimate.
171
171
if minor_radii is None :
172
172
# Return both variants if not provided with minor radii
173
173
return tuple (
You can’t perform that action at this time.
0 commit comments