From 1f3d5213280ba64a206b8c9d88cbd06a8769b358 Mon Sep 17 00:00:00 2001 From: "Christian W. Feldmann" <128160984+c-w-feldmann@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:15:21 +0200 Subject: [PATCH] adapt to newest pylint version --- .github/workflows/linting.yml | 2 +- molpipeline/estimators/chemprop/component_wrapper.py | 4 ++-- molpipeline/mol2any/mol2path_fingerprint.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 8ff938f3..f2a01618 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -22,7 +22,7 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint -d C0301,R0913,W1202 $(git ls-files '*.py') --ignored-modules "rdkit" + pylint -d C0301,R0913,W1202 $(git ls-files '*.py') --ignored-modules "rdkit" --max-positional-arguments 10 mypy: runs-on: ubuntu-latest steps: diff --git a/molpipeline/estimators/chemprop/component_wrapper.py b/molpipeline/estimators/chemprop/component_wrapper.py index 83f8e2a6..8ca6f489 100644 --- a/molpipeline/estimators/chemprop/component_wrapper.py +++ b/molpipeline/estimators/chemprop/component_wrapper.py @@ -151,7 +151,7 @@ class PredictorWrapper(_Predictor, BaseEstimator, abc.ABC): # type: ignore _T_default_criterion: LossFunction _T_default_metric: Metric - def __init__( + def __init__( # pylint: disable=too-many-positional-arguments self, n_tasks: int = 1, input_dim: int = DEFAULT_HIDDEN_DIM, @@ -327,7 +327,7 @@ class MulticlassClassificationFFN(PredictorWrapper, _MulticlassClassificationFFN _T_default_criterion = CrossEntropyLoss _T_default_metric = CrossEntropyMetric - def __init__( + def __init__( # pylint: disable=too-many-positional-arguments self, n_classes: int, n_tasks: int = 1, diff --git a/molpipeline/mol2any/mol2path_fingerprint.py b/molpipeline/mol2any/mol2path_fingerprint.py index 38e98d4a..12934806 100644 --- a/molpipeline/mol2any/mol2path_fingerprint.py +++ b/molpipeline/mol2any/mol2path_fingerprint.py @@ -27,7 +27,7 @@ class Mol2PathFP( """ - # pylint: disable=too-many-arguments,too-many-locals + # pylint: disable=too-many-arguments,too-many-locals,too-many-positional-arguments def __init__( self, min_path: int = 1,