From 42531191a12d75e618d24fb33a6b51394efbfe23 Mon Sep 17 00:00:00 2001 From: Liam Pattinson Date: Tue, 7 Nov 2023 16:09:03 +0000 Subject: [PATCH] MyPy CI fix --- .github/workflows/lint.yml | 4 ++-- src/pyloidal/cocos.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c9e8d2b..b1e904d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -38,10 +38,10 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.x - - name: Install MyPy + - name: Install Project and MyPy run: | python -m pip install --upgrade pip - python -m pip install mypy + python -m pip install .[lint] - name: Run MyPy run: | mypy src diff --git a/src/pyloidal/cocos.py b/src/pyloidal/cocos.py index 1f46dfb..aea2f0e 100644 --- a/src/pyloidal/cocos.py +++ b/src/pyloidal/cocos.py @@ -167,7 +167,7 @@ def identify_cocos( sigma_rpz = -1 if clockwise_phi else 1 sigma_rtp = sign_q * sign_plasma_current * sign_b_toroidal - # identify 2*pi term in poloidal_flux definition based on safety_factor estimate + # identify 2*pi term in poloidal_flux definition based on safety_factor estimate. if minor_radii is None: # Return both variants if not provided with minor radii return tuple(