Skip to content

Commit 0a750c2

Browse files
chore: update pylint (#899)
Co-authored-by: andrei-stoian-zama <andrei-stoian-zama@users.noreply.github.com>
1 parent 09dd6e4 commit 0a750c2

22 files changed

+1877
-1800
lines changed

benchmarks/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def should_test_config_in_fhe(
316316
if local_args.execute_in_fhe != "auto":
317317
return local_args.execute_in_fhe
318318

319-
model_name = model.__name__
319+
model_name = model.__name__ # pylint: disable=redefined-outer-name
320320
assert config is not None
321321

322322
# System override to disable FHE benchmarks (useful for debugging)
@@ -702,7 +702,7 @@ def benchmark_name_generator(
702702
"""Turns a combination of data-set + model + hyper-parameters and returns a string"""
703703
assert isinstance(model, type), f"Wrong type: {type(model)} - {model}"
704704

705-
model_name = model.__name__
705+
model_name = model.__name__ # pylint: disable=redefined-outer-name
706706

707707
assert (
708708
model_name in MODEL_NAMES
@@ -774,7 +774,7 @@ def benchmark_name_to_config(
774774
) -> Tuple[str, str, Dict[str, Any]]:
775775
"""Convert a benchmark name to each part"""
776776
splitted = benchmark_name.split(joiner)
777-
model_name = splitted[0]
777+
model_name = splitted[0] # pylint: disable=redefined-outer-name
778778
dataset_name = splitted[-1]
779779
config_str = splitted[1:-1]
780780
config_dict = {}

benchmarks/glm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def get_config(args: argparse.Namespace) -> Dict[str, Any]:
216216
n_bits_list = args.n_bits
217217
else: # Default
218218
try: # For backward compatibility
219-
# pylint: disable-next=unused-import,import-outside-toplevel
220219
# flake8: noqa: F401,C0415
220+
# pylint: disable-next=unused-import,import-outside-toplevel
221221
from concrete.ml.quantization.base_quantized_op import DEFAULT_MODEL_BITS
222222

223223
n_bits_list = [
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
Name, Version, License
22
Jinja2, 3.1.4, BSD License
33
MarkupSafe, 2.1.5, BSD License
4-
PyYAML, 6.0.1, MIT License
4+
PyYAML, 6.0.2, MIT License
55
brevitas, 0.10.2, UNKNOWN
6-
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
6+
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
77
charset-normalizer, 3.3.2, MIT License
88
coloredlogs, 15.0.1, MIT License
99
concrete-python, 2.8.1, BSD-3-Clause
1010
dependencies, 2.0.1, BSD License
1111
dill, 0.3.8, BSD License
12-
filelock, 3.15.3, The Unlicense (Unlicense)
12+
filelock, 3.16.1, The Unlicense (Unlicense)
1313
flatbuffers, 2.0.7, Apache Software License
14-
fsspec, 2024.6.0, BSD License
15-
huggingface-hub, 0.23.4, Apache Software License
14+
fsspec, 2024.9.0, BSD License
15+
huggingface-hub, 0.25.1, Apache Software License
1616
humanfriendly, 10.0, MIT License
1717
hummingbird-ml, 0.4.11, MIT License
18-
idna, 3.7, BSD License
19-
importlib_resources, 6.4.0, Apache Software License
18+
idna, 3.10, BSD License
19+
importlib_resources, 6.4.5, Apache Software License
2020
joblib, 1.4.2, BSD License
21-
jsonpickle, 3.2.2, BSD License
21+
jsonpickle, 3.3.0, BSD License
2222
mpmath, 1.3.0, BSD License
2323
networkx, 3.1, BSD License
2424
numpy, 1.23.5, BSD License
@@ -32,35 +32,35 @@ nvidia-curand-cu12, 10.3.2.106, Other/Proprietary License
3232
nvidia-cusolver-cu12, 11.4.5.107, Other/Proprietary License
3333
nvidia-cusparse-cu12, 12.1.0.106, Other/Proprietary License
3434
nvidia-nccl-cu12, 2.20.5, Other/Proprietary License
35-
nvidia-nvjitlink-cu12, 12.5.82, Other/Proprietary License
35+
nvidia-nvjitlink-cu12, 12.6.68, Other/Proprietary License
3636
nvidia-nvtx-cu12, 12.1.105, Other/Proprietary License
3737
onnx, 1.16.1, Apache License v2.0
3838
onnxconverter-common, 1.13.0, MIT License
39-
onnxmltools, 1.11.0, Apache Software License
39+
onnxmltools, 1.12.0, Apache Software License
4040
onnxoptimizer, 0.3.13, Apache License v2.0
4141
onnxruntime, 1.18.0, MIT License
4242
packaging, 24.1, Apache Software License; BSD License
4343
pandas, 2.0.3, BSD License
4444
protobuf, 4.25.5, 3-Clause BSD License
4545
psutil, 5.9.8, BSD License
4646
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
47-
pytz, 2024.1, MIT License
47+
pytz, 2024.2, MIT License
4848
requests, 2.32.3, Apache Software License
4949
scikit-learn, 1.1.3, BSD License
5050
scipy, 1.10.1, BSD License
5151
six, 1.16.0, MIT License
52-
skl2onnx, 1.12, Apache Software License
52+
skl2onnx, 1.17.0, Apache Software License
5353
skops, 0.5.0, MIT
5454
skorch, 0.11.0, new BSD 3-Clause
55-
sympy, 1.12.1, BSD License
55+
sympy, 1.13.3, BSD License
5656
tabulate, 0.8.10, MIT License
5757
threadpoolctl, 3.5.0, BSD License
5858
torch, 2.3.1, BSD License
59-
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
59+
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
6060
triton, 2.3.1, MIT License
6161
typing_extensions, 4.12.2, Python Software Foundation License
62-
tzdata, 2024.1, Apache Software License
62+
tzdata, 2024.2, Apache Software License
6363
unfoldNd, 0.2.2, MIT License
64-
urllib3, 2.2.2, MIT License
64+
urllib3, 2.2.3, MIT License
6565
xgboost, 1.6.2, Apache Software License
6666
z3-solver, 4.13.0.0, MIT License
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51e6ae120f9b905e160d3e94ca9b05c3
1+
4e85bce827524070befed6799ac55e5e
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
Name, Version, License
22
Jinja2, 3.1.4, BSD License
33
MarkupSafe, 2.1.5, BSD License
4-
PyYAML, 6.0.1, MIT License
4+
PyYAML, 6.0.2, MIT License
55
brevitas, 0.10.2, UNKNOWN
6-
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
6+
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
77
charset-normalizer, 3.3.2, MIT License
88
coloredlogs, 15.0.1, MIT License
99
concrete-python, 2.8.1, BSD-3-Clause
1010
dependencies, 2.0.1, BSD License
1111
dill, 0.3.8, BSD License
12-
filelock, 3.15.3, The Unlicense (Unlicense)
12+
filelock, 3.16.1, The Unlicense (Unlicense)
1313
flatbuffers, 2.0.7, Apache Software License
14-
fsspec, 2024.6.0, BSD License
15-
huggingface-hub, 0.23.4, Apache Software License
14+
fsspec, 2024.9.0, BSD License
15+
huggingface-hub, 0.25.1, Apache Software License
1616
humanfriendly, 10.0, MIT License
1717
hummingbird-ml, 0.4.11, MIT License
18-
idna, 3.7, BSD License
19-
importlib_resources, 6.4.0, Apache Software License
18+
idna, 3.10, BSD License
19+
importlib_resources, 6.4.5, Apache Software License
2020
joblib, 1.4.2, BSD License
21-
jsonpickle, 3.2.2, BSD License
21+
jsonpickle, 3.3.0, BSD License
2222
mpmath, 1.3.0, BSD License
2323
networkx, 3.1, BSD License
2424
numpy, 1.23.5, BSD License
2525
onnx, 1.16.1, Apache License v2.0
2626
onnxconverter-common, 1.13.0, MIT License
27-
onnxmltools, 1.11.0, Apache Software License
27+
onnxmltools, 1.12.0, Apache Software License
2828
onnxoptimizer, 0.3.13, Apache License v2.0
2929
onnxruntime, 1.18.0, MIT License
3030
packaging, 24.1, Apache Software License; BSD License
3131
pandas, 2.0.3, BSD License
3232
protobuf, 4.25.5, 3-Clause BSD License
3333
psutil, 5.9.8, BSD License
3434
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
35-
pytz, 2024.1, MIT License
35+
pytz, 2024.2, MIT License
3636
requests, 2.32.3, Apache Software License
3737
scikit-learn, 1.1.3, BSD License
3838
scipy, 1.10.1, BSD License
3939
six, 1.16.0, MIT License
40-
skl2onnx, 1.12, Apache Software License
40+
skl2onnx, 1.17.0, Apache Software License
4141
skops, 0.5.0, MIT
4242
skorch, 0.11.0, new BSD 3-Clause
43-
sympy, 1.12.1, BSD License
43+
sympy, 1.13.3, BSD License
4444
tabulate, 0.8.10, MIT License
4545
threadpoolctl, 3.5.0, BSD License
4646
torch, 2.2.2, BSD License
47-
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
47+
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
4848
typing_extensions, 4.12.2, Python Software Foundation License
49-
tzdata, 2024.1, Apache Software License
49+
tzdata, 2024.2, Apache Software License
5050
unfoldNd, 0.2.2, MIT License
51-
urllib3, 2.2.2, MIT License
51+
urllib3, 2.2.3, MIT License
5252
xgboost, 1.6.2, Apache Software License
5353
z3-solver, 4.13.0.0, MIT License
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51e6ae120f9b905e160d3e94ca9b05c3
1+
4e85bce827524070befed6799ac55e5e
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
Name, Version, License
22
Jinja2, 3.1.4, BSD License
33
MarkupSafe, 2.1.5, BSD License
4-
PyYAML, 6.0.1, MIT License
4+
PyYAML, 6.0.2, MIT License
55
brevitas, 0.10.2, UNKNOWN
6-
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
6+
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
77
charset-normalizer, 3.3.2, MIT License
88
coloredlogs, 15.0.1, MIT License
99
concrete-python, 2.8.1, BSD-3-Clause
1010
dependencies, 2.0.1, BSD License
1111
dill, 0.3.8, BSD License
12-
filelock, 3.15.3, The Unlicense (Unlicense)
12+
filelock, 3.16.1, The Unlicense (Unlicense)
1313
flatbuffers, 2.0.7, Apache Software License
14-
fsspec, 2024.6.0, BSD License
15-
huggingface-hub, 0.23.4, Apache Software License
14+
fsspec, 2024.9.0, BSD License
15+
huggingface-hub, 0.25.1, Apache Software License
1616
humanfriendly, 10.0, MIT License
1717
hummingbird-ml, 0.4.11, MIT License
18-
idna, 3.7, BSD License
19-
importlib_resources, 6.4.0, Apache Software License
18+
idna, 3.10, BSD License
19+
importlib_resources, 6.4.5, Apache Software License
2020
joblib, 1.4.2, BSD License
21-
jsonpickle, 3.2.2, BSD License
21+
jsonpickle, 3.3.0, BSD License
2222
mpmath, 1.3.0, BSD License
2323
networkx, 3.1, BSD License
2424
numpy, 1.23.5, BSD License
2525
onnx, 1.16.1, Apache License v2.0
2626
onnxconverter-common, 1.13.0, MIT License
27-
onnxmltools, 1.11.0, Apache Software License
27+
onnxmltools, 1.12.0, Apache Software License
2828
onnxoptimizer, 0.3.13, Apache License v2.0
2929
onnxruntime, 1.18.0, MIT License
3030
packaging, 24.1, Apache Software License; BSD License
3131
pandas, 2.0.3, BSD License
3232
protobuf, 4.25.5, 3-Clause BSD License
3333
psutil, 5.9.8, BSD License
3434
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
35-
pytz, 2024.1, MIT License
35+
pytz, 2024.2, MIT License
3636
requests, 2.32.3, Apache Software License
3737
scikit-learn, 1.1.3, BSD License
3838
scipy, 1.10.1, BSD License
3939
six, 1.16.0, MIT License
40-
skl2onnx, 1.12, Apache Software License
40+
skl2onnx, 1.17.0, Apache Software License
4141
skops, 0.5.0, MIT
4242
skorch, 0.11.0, new BSD 3-Clause
43-
sympy, 1.12.1, BSD License
43+
sympy, 1.13.3, BSD License
4444
tabulate, 0.8.10, MIT License
4545
threadpoolctl, 3.5.0, BSD License
4646
torch, 2.3.1, BSD License
47-
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
47+
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
4848
typing_extensions, 4.12.2, Python Software Foundation License
49-
tzdata, 2024.1, Apache Software License
49+
tzdata, 2024.2, Apache Software License
5050
unfoldNd, 0.2.2, MIT License
51-
urllib3, 2.2.2, MIT License
51+
urllib3, 2.2.3, MIT License
5252
xgboost, 1.6.2, Apache Software License
5353
z3-solver, 4.13.0.0, MIT License
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
51e6ae120f9b905e160d3e94ca9b05c3
1+
4e85bce827524070befed6799ac55e5e

docs/advanced_examples/QuantizationAwareTraining.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@
110110
"outputs": [],
111111
"source": [
112112
"# pylint: disable-next=too-many-arguments\n",
113-
"\n",
114-
"\n",
115113
"def train(\n",
116114
" torch_model,\n",
117115
" X_train,\n",

docs/guides/using_gpu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ a model is compiled for CUDA, executing it on a non-CUDA-enabled machine will ra
99

1010
| Feature | Built-in models | Custom Models | Deployment | DataFrame |
1111
| ----------- | --------------- | ------------- | ---------- | --------- |
12-
| GPU support | | | | |
12+
| GPU support |||||
1313
| | | | | |
1414

1515
{% hint style="warning" %}

0 commit comments

Comments
 (0)