From 6dbe7c1f84985a1a8980e96ab5d60f1413835163 Mon Sep 17 00:00:00 2001 From: Jonhas Colina Date: Wed, 27 Mar 2024 15:14:45 -0600 Subject: [PATCH] trying another one --- .github/workflows/lint-test.yml | 23 +++++++++++++++++++ .github/workflows/other-lint-test.yml | 32 --------------------------- requirements.txt | 8 ------- 3 files changed, 23 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/lint-test.yml delete mode 100644 .github/workflows/other-lint-test.yml delete mode 100644 requirements.txt diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml new file mode 100644 index 0000000..49df108 --- /dev/null +++ b/.github/workflows/lint-test.yml @@ -0,0 +1,23 @@ +name: Test-Lint + +on: [pull_request] + +jobs: + pylint: + name: Test Analysis + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Python Linter + uses: sunnysid3up/python-linter@master + with: + source: "src" + mypy-options: "--ignore-missing-imports --show-error-codes" + pylint-options: "--rcfile=setup.cfg" + isort-options: "-w 100" + django: true \ No newline at end of file diff --git a/.github/workflows/other-lint-test.yml b/.github/workflows/other-lint-test.yml deleted file mode 100644 index e96bd09..0000000 --- a/.github/workflows/other-lint-test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Tests - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.11"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install . - - name: Run pylint test - uses: Silleellie/pylint-github-action@v2 - with: - lint-path: src - python-version: 3.11 - readme-path: README.md - badge-text: PyLint - color-bad-score: red - color-ok-score: orange - color-good-score: yellow - color-perfect-score: brightgreen diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b0e5bf1..0000000 --- a/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -cirq == 1.3.0.dev20231102230836, -matplotlib, -networkx, -numpy, -openfermion, -openfermionpyscf, -pandas, -pyLIQTR ==1.0.0 \ No newline at end of file