diff --git a/.github/workflows/insolver-tests.yaml b/.github/workflows/insolver-tests.yaml index a12ac3b..f51ec39 100644 --- a/.github/workflows/insolver-tests.yaml +++ b/.github/workflows/insolver-tests.yaml @@ -23,9 +23,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install libomp for lightgbm (macOS) @@ -44,12 +44,12 @@ jobs: - name: Lint with ruff shell: bash run: | - ruff . --select=E9,F63,F7,F82 --show-source - ruff . --exit-zero --statistics + ruff check . --select=E9,F63,F7,F82 --show-source + ruff check . --exit-zero --statistics - name: Test with pytest shell: bash run: | - python -m pytest --cov=./ --cov-report=xml + python -m pytest --cov=insolver --cov-report xml - name: Code coverage with codecov on (ubuntu-latest & Python 3.10 & master) if: | (matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' && github.ref == 'refs/heads/master') diff --git a/pyproject.toml b/pyproject.toml index 1570820..782614e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,10 +91,10 @@ exclude = [ line-length = 120 -dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" +lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" target-version = "py310" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F403"] "insolver/serving/django_insolver/apps/drf_serving/*" = ["F401", "F403", "F405"]