diff --git a/.github/workflows/full_test.yml b/.github/workflows/full_test.yml index 3097695f1..286e1e7b9 100644 --- a/.github/workflows/full_test.yml +++ b/.github/workflows/full_test.yml @@ -17,11 +17,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: [3.8, "3.11"] steps: - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 # Fail fast if there are any linting errors - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -29,16 +29,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pytest-cov + pip install pytest pytest-cov - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - # test methods have to be unique - flake8 tests/ --select=F811 - name: Install mikeio run: | pip install .[test] diff --git a/tests/performance/test_performance_dfs0.py b/tests/performance/test_performance_dfs0.py index 91c83d6d6..1b3980921 100644 --- a/tests/performance/test_performance_dfs0.py +++ b/tests/performance/test_performance_dfs0.py @@ -1,4 +1,3 @@ -from pathlib import Path import numpy as np import pandas as pd import mikeio diff --git a/tests/test_dfs0.py b/tests/test_dfs0.py index 4c969773c..e3f38d785 100644 --- a/tests/test_dfs0.py +++ b/tests/test_dfs0.py @@ -1,4 +1,3 @@ -import os import numpy as np import pandas as pd import datetime diff --git a/tests/test_dfsu_layered.py b/tests/test_dfsu_layered.py index ca990fb34..3f784babb 100644 --- a/tests/test_dfsu_layered.py +++ b/tests/test_dfsu_layered.py @@ -1,4 +1,3 @@ -import os import numpy as np import pytest import mikeio diff --git a/tests/test_dfsu_plot.py b/tests/test_dfsu_plot.py index 08ba2d6f2..6bb2f0b05 100644 --- a/tests/test_dfsu_plot.py +++ b/tests/test_dfsu_plot.py @@ -1,4 +1,3 @@ -import os import numpy as np import pytest import matplotlib as mpl diff --git a/tests/test_mesh.py b/tests/test_mesh.py index e2303a3cd..2e22ddbb8 100644 --- a/tests/test_mesh.py +++ b/tests/test_mesh.py @@ -1,4 +1,3 @@ -import os import numpy as np import pytest from mikeio import Mesh diff --git a/tests/test_pfs.py b/tests/test_pfs.py index b3cca537d..d5396dcc3 100644 --- a/tests/test_pfs.py +++ b/tests/test_pfs.py @@ -1,6 +1,5 @@ from io import StringIO import sys -import os import pytest import mikeio import pandas as pd