Skip to content

Commit

Permalink
adapt to newest pylint version
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w-feldmann authored Sep 20, 2024
1 parent 0b7852c commit 1f3d521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions molpipeline/estimators/chemprop/component_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion molpipeline/mol2any/mol2path_fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f3d521

Please sign in to comment.