From 402da6ad2946cdffc9fa7d0178f3927d985a92f6 Mon Sep 17 00:00:00 2001 From: Florian Strzelecki Date: Sat, 19 Oct 2024 23:19:38 +0200 Subject: [PATCH] meta: bump to 0.5.2 and fix pylint<3 Apparently pylint dropped support for Py3.8, and added a bunch of new rules. As a result, the current CI trips over. This is an attempt at hotfixing that by using pylint<3 (so pylint 2.x) until I decided how to approach the situation exactly. --- .github/workflows/ci.yml | 2 ++ .pylintrc | 3 +++ Makefile | 5 +++-- pyproject.toml | 2 +- requirements.txt | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e9a21f..2059568 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: - "3.8" - "3.9" - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.pylintrc b/.pylintrc index 97a77ed..62e797a 100644 --- a/.pylintrc +++ b/.pylintrc @@ -302,6 +302,9 @@ max-locals=15 # Maximum number of parents for a class (see R0901). max-parents=7 +# Maximum number of positional arguments for function / methods. +max-positional-arguments=10 + # Maximum number of public methods for a class (see R0904). max-public-methods=20 diff --git a/Makefile b/Makefile index d4d3f10..8915fe2 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,9 @@ coverages: coverage_report coverage_html .PHONY: develop qa build develop: - pip install -U -r requirements.txt - pip install -e . + python -m pip install -U pip + python -m pip install -U -r requirements.txt + python -m pip install -e . qa: lint-check test coverages lint-style diff --git a/pyproject.toml b/pyproject.toml index 18b2899..ac5be30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ namespaces = false [project] name = "sopel-help" -version = "0.5.1" +version = "0.5.2" description = "Help plugin for Sopel" keywords = ["sopel", "irc", "help", "doc", "plugin"] maintainers = [ diff --git a/requirements.txt b/requirements.txt index b9284f1..06659c8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # requirements for dev flake8 -pylint +pylint<3 coverage pytest requests-mock