Skip to content

Commit c34c6bf

Browse files
committed
remove some lint
1 parent 265cd79 commit c34c6bf

10 files changed

Lines changed: 14 additions & 15 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Changelog for bmi-example-python
3131
- Match bmipy (#12)
3232
- Use GitHub Actions for continuous integration (#15)
3333
- Dimensionalize flattened values passed into set_value (#17)
34-
- Update CI (#18)
34+
- Update CI (#18)
3535
- Switch from versioneer to zest.releaser
3636
- Remove obsolete docs directory
3737

@@ -46,4 +46,3 @@ Changelog for bmi-example-python
4646
------------------
4747

4848
- Initial release
49-

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

heat/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Model the diffusion of heat over a 2D plate."""
22
from ._version import __version__
33
from .bmi_heat import BmiHeat
4-
from .heat import Heat, solve_2d
4+
from .heat import Heat
5+
from .heat import solve_2d
56

67
__all__ = ["__version__", "BmiHeat", "solve_2d", "Heat"]

heat/bmi_heat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def initialize(self, filename=None):
3939
if filename is None:
4040
self._model = Heat()
4141
elif isinstance(filename, str):
42-
with open(filename, "r") as file_obj:
42+
with open(filename) as file_obj:
4343
self._model = Heat.from_file_like(file_obj.read())
4444
else:
4545
self._model = Heat.from_file_like(filename)

heat/heat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def solve_2d(temp, spacing, out=None, alpha=1.0, time_step=1.0):
5353
return np.add(temp, out, out=out)
5454

5555

56-
class Heat(object):
56+
class Heat:
5757

5858
"""Solve the Heat equation on a grid.
5959

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def clean(session):
8383

8484
shutil.rmtree("build", ignore_errors=True)
8585
shutil.rmtree("dist", ignore_errors=True)
86-
shutil.rmtree(f"src/{PROJECT}.egg-info", ignore_errors=True)
86+
shutil.rmtree(f"{PROJECT}.egg-info", ignore_errors=True)
8787
shutil.rmtree(".pytest_cache", ignore_errors=True)
8888
shutil.rmtree(".venv", ignore_errors=True)
8989

requirements-testing.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1+
bmi-tester
12
coveralls
23
pytest
34
pytest-cov
4-
black
5-
isort
6-
ruff
7-
bmi-tester

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
bmipy
12
numpy
2-
scipy
33
pyyaml
4-
bmipy
4+
scipy

tests/get_value_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
import numpy as np
3-
from numpy.testing import assert_array_almost_equal, assert_array_less
3+
from numpy.testing import assert_array_almost_equal
4+
from numpy.testing import assert_array_less
45

56
from heat import BmiHeat
67

tests/irf_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
import numpy as np
55
import yaml
6-
from numpy.testing import assert_almost_equal, assert_array_equal, assert_array_less
6+
from numpy.testing import assert_almost_equal
7+
from numpy.testing import assert_array_equal
8+
from numpy.testing import assert_array_less
79

810
from heat import BmiHeat
911

0 commit comments

Comments
 (0)