Skip to content

Commit 769b59e

Browse files
committed
fix(lint): resolve flake8 warnings and exclude .claude directory
Remove unused xy_prev variable in cpf.py, unused imports in test_setpoint.py, and add .claude to flake8 exclude list.
1 parent 88c1c7e commit 769b59e

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
2-
exclude = .git,__pycache__,build,dist,demos,cases,cards,versioneer.py,andes/_version.py,docs/source/conf.py,docs/source/_build,benchmarks,andes/pycode,scripts,.history,scratch
2+
exclude = .git,.claude,__pycache__,build,dist,demos,cases,cards,versioneer.py,andes/_version.py,docs/source/conf.py,docs/source/_build,benchmarks,andes/pycode,scripts,.history,scratch
33
max-line-length=115

andes/routines/cpf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ def _continuation(self):
585585
z = self._compute_tangent(lam, z)
586586

587587
# previous converged point (for secant orientation)
588-
xy_prev = None
589588
lam_prev = None
590589

591590
for k in range(self.config.max_steps):
@@ -662,7 +661,6 @@ def _continuation(self):
662661
fail_count = 0
663662

664663
# save previous point for secant
665-
xy_prev = xy.copy()
666664
lam_prev = lam
667665

668666
xy = np.concatenate([dae.x[:n].copy(), dae.y[:m].copy()])

tests/integration/test_setpoint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
- GroupBase.set_setpoint() / get_setpoint()
66
"""
77

8-
import logging
98
import unittest
109

11-
import numpy as np
12-
1310
import andes
1411
from andes.utils.paths import get_case
1512

0 commit comments

Comments
 (0)