Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: bump to 0.5.2 and fix pylint<3 #13

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,23 @@ jobs:
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -r requirements.txt
python -m pip install "sopel<8"
python -m pip install -e .
- name: Lint
run: make lint
run: |
isort sopel_help
flake8
pylint sopel_help
pyroma .
- name: Tests
run: make test
run: |
coverage run -m pytest -v .
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ 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 wheel
python -m pip install -U -r requirements.txt
python -m pip install -e .

qa: lint-check test coverages lint-style

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# requirements for dev

flake8
pylint
pylint<3
coverage
pytest
requests-mock
Expand Down