From cf5f70bb203bb4823111a244c1840144c7d5ed8e Mon Sep 17 00:00:00 2001 From: alexmindset Date: Tue, 7 May 2024 18:31:20 +0300 Subject: [PATCH 1/4] Update workflow pytest --- .github/workflows/insolver-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insolver-tests.yaml b/.github/workflows/insolver-tests.yaml index a12ac3b..2af0ea3 100644 --- a/.github/workflows/insolver-tests.yaml +++ b/.github/workflows/insolver-tests.yaml @@ -49,7 +49,7 @@ jobs: - name: Test with pytest shell: bash run: | - python -m pytest --cov=./ --cov-report=xml + python -m pytest --cov=pypricer --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') From b2de98c0459ac05ab043063243f844847924b367 Mon Sep 17 00:00:00 2001 From: alexmindset Date: Tue, 7 May 2024 18:35:12 +0300 Subject: [PATCH 2/4] Fix typo --- .github/workflows/insolver-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/insolver-tests.yaml b/.github/workflows/insolver-tests.yaml index 2af0ea3..56047da 100644 --- a/.github/workflows/insolver-tests.yaml +++ b/.github/workflows/insolver-tests.yaml @@ -49,7 +49,7 @@ jobs: - name: Test with pytest shell: bash run: | - python -m pytest --cov=pypricer --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') From faa33a01810f0757521f0ef927a7b8e6ce0d93cc Mon Sep 17 00:00:00 2001 From: alexmindset Date: Tue, 7 May 2024 18:37:03 +0300 Subject: [PATCH 3/4] Update GitHub Workflow --- .github/workflows/insolver-tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/insolver-tests.yaml b/.github/workflows/insolver-tests.yaml index 56047da..bc03e95 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) From a68434dc12761f52915584c76d0584296ca39d22 Mon Sep 17 00:00:00 2001 From: alexmindset Date: Tue, 7 May 2024 18:45:27 +0300 Subject: [PATCH 4/4] Update ruff --- .github/workflows/insolver-tests.yaml | 4 ++-- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/insolver-tests.yaml b/.github/workflows/insolver-tests.yaml index bc03e95..f51ec39 100644 --- a/.github/workflows/insolver-tests.yaml +++ b/.github/workflows/insolver-tests.yaml @@ -44,8 +44,8 @@ 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: | 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"]