From 76a4475ad66935dc7c4175676bc5f2ef9e7458f0 Mon Sep 17 00:00:00 2001 From: infinityofspace <30715462+infinityofspace@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:16:44 +0100 Subject: [PATCH] seperated dev and prod dependencies; simplified linting workflow --- .github/workflows/linting.yml | 34 +++------------------------------- requirements-dev.txt | 5 +++++ requirements.txt | 2 -- 3 files changed, 8 insertions(+), 33 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index d0d6567..d2f2899 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -25,38 +25,10 @@ jobs: pip install flake8 pylint - name: Install project requirements - run: pip install -r requirements.txt + run: pip install -r requirements-dev.txt - name: Lint with flake8 - run: flake8 certbot_dns_porkbun --count --select=E9,F63,F7,F82 --show-source --statistics + run: flake8 certbot_dns_porkbun --count --ignore E501 --show-source --statistics - name: Lint with pylint - run: pylint certbot_dns_porkbun -d C,R,W - - linting-setup-install: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] - - 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 linting requirements - run: | - pip install --upgrade pip - pip install flake8 pylint - - - name: Install project - run: pip install . - - - name: Lint with flake8 - run: flake8 certbot_dns_porkbun --count --select=E9,F63,F7,F82 --show-source --statistics - - - name: Lint with pylint - run: pylint certbot_dns_porkbun -d C,R,W + run: pylint certbot_dns_porkbun --disable C0301 diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..e8ecafe --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,5 @@ +-r requirements.txt +responses~=0.25 +ruff~=0.7 +flake8~=7.1 +pylint~=3.3 diff --git a/requirements.txt b/requirements.txt index a60796b..91e8512 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,3 @@ certbot>=1.18.0,<4.0 pkb_client>=2.0,<3.0 dnspython>=2.0.0,<3.0 tldextract>=5.1.2,<6.0 -ruff~=0.7 -responses~=0.25