Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
ci: upgrade pylint and bump python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed May 27, 2023
1 parent a7fbbc0 commit 25b4b03
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
init-hook='import sys; sys.path.append("rplugin/python3")'

[MESSAGES CONTROL]
disable=E1101,W0511,W0612,W0613,W0212,W0221,W0703,W0622,W1113,C,R
disable=E1101,W0511,W0612,W0613,W0212,W0221,W0703,W0622,W1113,W1514,C,R

[BASIC]
argument-rgx=[a-z_][a-z0-9_]{0,30}$
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gkeepapi
isort
keyring
mypy
pylint==2.9.5
pylint==2.17.4
pynvim
pytest
pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/gkeep/modal/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def open_win(
)
if align is not None:
if relative == "cursor":
raise Exception("Align requires relative = win/editor")
raise ValueError("Align requires relative = win/editor")
anchor, row, col = calc_alignment(
align, width, height, total_width, total_height
)
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/gkeep/thread_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def w(*args, **kwargs): # type: ignore
@wraps(func)
def w(*args, **kwargs): # type: ignore[no-untyped-def]
if kwargs:
raise Exception(
raise ValueError(
"Cannot use keyword arguments for @background function with max_waiting"
)
with countlock:
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, lint
envlist = py38, py39, py310, py311, lint
isolated_build = true
skipsdist = true

Expand Down Expand Up @@ -27,7 +27,7 @@ commands =

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39, lint
3.10: py310
3.11: py311

0 comments on commit 25b4b03

Please sign in to comment.