From a33985c69b8980c91abdd572b661cea6c909c9e0 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Sat, 25 Jun 2022 14:05:51 +0300 Subject: [PATCH] Cleaned up .github/ - Removed PyLint - Used poetry for dependencies - Made workflows only run for CPython 3.8 --- .github/ISSUE_TEMPLATE/bug_report.yml | 3 +-- .github/workflows/bandit.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/pylint.yml | 26 -------------------------- .github/workflows/pyright.yml | 6 +++--- 5 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/pylint.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 13630b6..b281ad2 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -53,8 +53,7 @@ body: - type: checkboxes attributes: label: Checklist - description: | - Let's make sure you've properly done due diligence when reporting this issue! + description: Let's make sure you've properly done due diligence when reporting this issue! options: - label: I have searched the open issues for duplicates. required: true diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index d8a0277..b3a1572 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10' ] + python-version: [ "3.8" ] steps: - name: Checkout Repository diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c2c5235..4a44f13 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10' ] + python-version: [ "3.8" ] steps: - name: Checkout Repository diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 848a02a..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: PyLint - -on: [ pull_request, push ] - -jobs: - build: - if: github.event.pull_request.user.type != 'Bot' - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ '3.8', '3.9', '3.10' ] - - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install PyLint - run: pip install -U pip pylint - - - name: Run PyLint - run: pylint $(git ls-files '*.py') diff --git a/.github/workflows/pyright.yml b/.github/workflows/pyright.yml index 920383b..637ea5c 100644 --- a/.github/workflows/pyright.yml +++ b/.github/workflows/pyright.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.8', '3.9', '3.10' ] + python-version: [ "3.8" ] steps: - name: Checkout Repository @@ -21,8 +21,8 @@ jobs: - name: Install PyRight & Dependencies run: | - pip install -U pip pyright - pip install -Ur requirements.txt + pip install -U poetry pyright + poetry install --no-dev - name: Run PyRight run: pyright ./