Skip to content

Commit cf9d7ff

Browse files
authored
FAI-881: Upgrade Pylint version (#112)
* Upgrade Pylint version * Fix linting errors
1 parent 6fdc8d2 commit cf9d7ff

8 files changed

+8
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dev = [
3232
"joblib==1.0.1",
3333
"jupyter==1.0.0",
3434
"scikit-learn==0.24.2",
35-
"pylint==2.9.0",
35+
"pylint==2.15.6",
3636
"pytest==6.2.4",
3737
"setuptools",
3838
"wheel",

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ click==8.0.4
44
joblib==1.2.0
55
jupyter==1.0.0
66
scikit-learn==0.24.2
7-
pylint==2.9.0
7+
pylint==2.15.6
88
pytest==6.2.4
99
setuptools
1010
wheel

src/trustyai/explainers.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Explainers module"""
22
# pylint: disable = import-error, too-few-public-methods, wrong-import-order, line-too-long,
33
# pylint: disable = unused-argument, too-many-lines
4+
# pylint: disable = consider-using-f-string, invalid-name
45
from typing import Dict, Optional, List, Union
56
import matplotlib.pyplot as plt
67
import matplotlib as mpl

src/trustyai/initializer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# pylint: disable = import-error, import-outside-toplevel, dangerous-default-value, invalid-name, R0801
2+
# pylint: disable = deprecated-module
23
"""Main TrustyAI Python bindings"""
34
from distutils.sysconfig import get_python_lib
45
import glob

src/trustyai/model/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable = import-error, too-few-public-methods, invalid-name, duplicate-code, too-many-lines
22
# pylint: disable = unused-import, wrong-import-order
3+
# pylint: disable = consider-using-f-string
34
"""General model classes"""
45
import uuid as _uuid
56
from typing import List, Optional, Union, Callable

src/trustyai/utils/_tyrus_info_text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
# pylint: disable = consider-using-f-string
12
"""Info text used in Tyrus visualization explainer info"""
23
from trustyai.utils._visualisation import bold_red_html, bold_green_html
34

4-
55
LIME_TEXT = """
66
<div style="padding: 10px">
77
<h3> What is LIME?</h3>

src/trustyai/utils/_visualisation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Visualiser utilies for explainer results"""
2+
# pylint: disable = consider-using-f-string
23
from abc import ABC, abstractmethod
34
import pandas as pd
45
from pandas.io.formats.style import Styler
@@ -52,7 +53,6 @@ def feature_html(content):
5253
"neutral_primary_colour": "#ffffff",
5354
}
5455

55-
5656
DEFAULT_RC_PARAMS = {
5757
"patch.linewidth": 0.5,
5858
"patch.facecolor": "348ABD",

src/trustyai/utils/tyrus.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tyrus module"""
22
# pylint: disable = too-few-public-methods, wrong-import-order, protected-access, cell-var-from-loop
33
# pylint: disable = too-many-instance-attributes, import-error. too-many-locals
4+
# pylint: disable = consider-using-f-string
45
import numpy as np
56
import pandas as pd
67
from bokeh.io import show, output_file, output_notebook, reset_output

0 commit comments

Comments
 (0)