Skip to content

Commit 82b9e02

Browse files
committed
Fix lint
1 parent 6d6bf7c commit 82b9e02

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
- "3.10"
7878
- "3.11"
7979
- "3.12"
80+
- "3.13"
8081
include:
8182
- os: ubuntu-24.04
8283

peakrdl-cli/src/peakrdl/plugins/entry_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _get_entry_points(group_name: str) -> List[Tuple['EntryPoint', Optional['Dis
4646
eps = []
4747
for ep in pkg_resources.iter_entry_points(group_name):
4848
eps.append((ep, ep.dist))
49-
return eps
49+
return eps # type: ignore
5050

5151
def _get_name_from_dist(dist: 'Distribution') -> str:
5252
return dist.project_name # type: ignore

test/pylint.rc

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ load-plugins=
5050
# Pickle collected data for later comparisons.
5151
persistent=yes
5252

53-
# When enabled, pylint would attempt to guess common misconfiguration and emit
54-
# user-friendly hints instead of false-positive error messages.
55-
suggestion-mode=yes
56-
5753
# Allow loading of arbitrary C extensions. Extensions are imported into the
5854
# active Python interpreter and may run arbitrary code.
5955
unsafe-load-any-extension=no
@@ -89,15 +85,15 @@ disable=
8985
line-too-long,
9086

9187
# Noise / Don't care
92-
consider-using-f-string,
9388
no-else-return,
9489
unused-variable,
9590
invalid-name,
9691
missing-docstring,
9792
abstract-method,
9893
protected-access,
9994
duplicate-code,
100-
cyclic-import
95+
unused-argument,
96+
consider-using-f-string
10197

10298
# Enable the message, report, category or checker with the given id(s). You can
10399
# either give multiple identifier separated by comma (,) or put this option
@@ -140,7 +136,7 @@ max-nested-blocks=5
140136
# inconsistent-return-statements if a never returning function is called then
141137
# it will be considered as an explicit return statement and no message will be
142138
# printed.
143-
never-returning-functions=sys.exit
139+
never-returning-functions=sys.exit,argparse.parse_error
144140

145141

146142
[STRING]
@@ -490,7 +486,7 @@ valid-metaclass-classmethod-first-arg=cls
490486
ignored-parents=
491487

492488
# Maximum number of arguments for function / method.
493-
max-args=8
489+
max-args=16
494490

495491
# Maximum number of attributes for a class (see R0902).
496492
max-attributes=7
@@ -565,5 +561,5 @@ preferred-modules=
565561

566562
# Exceptions that will emit a warning when being caught. Defaults to
567563
# "BaseException, Exception".
568-
overgeneral-exceptions=builtins.BaseException,
569-
builtins.Exception
564+
overgeneral-exceptions=builtin.BaseException,
565+
builtin.Exception

test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
cd "$(dirname "$0")"
55

66
# Initialize venv
7-
python3 -m venv .venv
7+
python3.11 -m venv .venv
88
source .venv/bin/activate
99

1010
# Install test dependencies

0 commit comments

Comments
 (0)