From e69b57fd19878317c770149ee75ce7c78964b258 Mon Sep 17 00:00:00 2001 From: Saransh Date: Fri, 5 Jul 2024 00:49:57 +0530 Subject: [PATCH] ci: get rid off pylint and attestation --- .github/matchers/pylint.json | 32 -------------------------------- .github/workflows/cd.yml | 19 ------------------- .github/workflows/ci.yml | 4 ---- noxfile.py | 11 ----------- 4 files changed, 66 deletions(-) delete mode 100644 .github/matchers/pylint.json diff --git a/.github/matchers/pylint.json b/.github/matchers/pylint.json deleted file mode 100644 index e3a6bd1..0000000 --- a/.github/matchers/pylint.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "problemMatcher": [ - { - "severity": "warning", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-warning" - }, - { - "severity": "error", - "pattern": [ - { - "regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", - "file": 1, - "line": 2, - "column": 3, - "code": 4, - "message": 5 - } - ], - "owner": "pylint-error" - } - ] -} diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b90dc5c..25e28bf 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -29,11 +29,6 @@ jobs: with: fetch-depth: 0 - - name: Generate artifact attestation for sdist and wheel - uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2 - with: - subject-path: "dist/cuda-histogram-*" - - uses: hynek/build-and-inspect-python-package@v2 publish: @@ -56,18 +51,4 @@ jobs: - name: List distributions to be deployed run: ls -l dist/ - - name: Verify sdist artifact attestation - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: - gh attestation verify dist/cuda-histogram-*.tar.gz --repo ${{ - github.repository }} - - - name: Verify wheel artifact attestation - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: - gh attestation verify dist/cuda-histogram-*.whl --repo ${{ - github.repository }} - - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a96869f..801a86f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,10 +30,6 @@ jobs: - uses: pre-commit/action@v3.0.1 with: extra_args: --hook-stage manual --all-files - - name: Run PyLint - run: | - echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" - pipx run nox -s pylint checks: name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} diff --git a/noxfile.py b/noxfile.py index 40ceffb..9ebe3ec 100644 --- a/noxfile.py +++ b/noxfile.py @@ -25,17 +25,6 @@ def lint(session: nox.Session) -> None: ) -@nox.session -def pylint(session: nox.Session) -> None: - """ - Run PyLint. - """ - # This needs to be installed into the package environment, and is slower - # than a pre-commit check - session.install(".", "pylint") - session.run("pylint", "cuda_histogram", *session.posargs) - - @nox.session(python=ALL_PYTHON) def tests(session: nox.Session) -> None: """