Skip to content

Commit

Permalink
chore: update pylint (#899)
Browse files Browse the repository at this point in the history
Co-authored-by: andrei-stoian-zama <andrei-stoian-zama@users.noreply.github.com>
  • Loading branch information
andrei-stoian-zama and andrei-stoian-zama authored Sep 28, 2024
1 parent 09dd6e4 commit 0a750c2
Show file tree
Hide file tree
Showing 22 changed files with 1,877 additions and 1,800 deletions.
6 changes: 3 additions & 3 deletions benchmarks/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def should_test_config_in_fhe(
if local_args.execute_in_fhe != "auto":
return local_args.execute_in_fhe

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

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

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

assert (
model_name in MODEL_NAMES
Expand Down Expand Up @@ -774,7 +774,7 @@ def benchmark_name_to_config(
) -> Tuple[str, str, Dict[str, Any]]:
"""Convert a benchmark name to each part"""
splitted = benchmark_name.split(joiner)
model_name = splitted[0]
model_name = splitted[0] # pylint: disable=redefined-outer-name
dataset_name = splitted[-1]
config_str = splitted[1:-1]
config_dict = {}
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def get_config(args: argparse.Namespace) -> Dict[str, Any]:
n_bits_list = args.n_bits
else: # Default
try: # For backward compatibility
# pylint: disable-next=unused-import,import-outside-toplevel
# flake8: noqa: F401,C0415
# pylint: disable-next=unused-import,import-outside-toplevel
from concrete.ml.quantization.base_quantized_op import DEFAULT_MODEL_BITS

n_bits_list = [
Expand Down
32 changes: 16 additions & 16 deletions deps_licenses/licenses_linux_user.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Name, Version, License
Jinja2, 3.1.4, BSD License
MarkupSafe, 2.1.5, BSD License
PyYAML, 6.0.1, MIT License
PyYAML, 6.0.2, MIT License
brevitas, 0.10.2, UNKNOWN
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.8.1, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.15.3, The Unlicense (Unlicense)
filelock, 3.16.1, The Unlicense (Unlicense)
flatbuffers, 2.0.7, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.4, Apache Software License
fsspec, 2024.9.0, BSD License
huggingface-hub, 0.25.1, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.11, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
idna, 3.10, BSD License
importlib_resources, 6.4.5, Apache Software License
joblib, 1.4.2, BSD License
jsonpickle, 3.2.2, BSD License
jsonpickle, 3.3.0, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
numpy, 1.23.5, BSD License
Expand All @@ -32,35 +32,35 @@ nvidia-curand-cu12, 10.3.2.106, Other/Proprietary License
nvidia-cusolver-cu12, 11.4.5.107, Other/Proprietary License
nvidia-cusparse-cu12, 12.1.0.106, Other/Proprietary License
nvidia-nccl-cu12, 2.20.5, Other/Proprietary License
nvidia-nvjitlink-cu12, 12.5.82, Other/Proprietary License
nvidia-nvjitlink-cu12, 12.6.68, Other/Proprietary License
nvidia-nvtx-cu12, 12.1.105, Other/Proprietary License
onnx, 1.16.1, Apache License v2.0
onnxconverter-common, 1.13.0, MIT License
onnxmltools, 1.11.0, Apache Software License
onnxmltools, 1.12.0, Apache Software License
onnxoptimizer, 0.3.13, Apache License v2.0
onnxruntime, 1.18.0, MIT License
packaging, 24.1, Apache Software License; BSD License
pandas, 2.0.3, BSD License
protobuf, 4.25.5, 3-Clause BSD License
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
pytz, 2024.2, MIT License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skl2onnx, 1.17.0, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12.1, BSD License
sympy, 1.13.3, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.5.0, BSD License
torch, 2.3.1, BSD License
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
triton, 2.3.1, MIT License
typing_extensions, 4.12.2, Python Software Foundation License
tzdata, 2024.1, Apache Software License
tzdata, 2024.2, Apache Software License
unfoldNd, 0.2.2, MIT License
urllib3, 2.2.2, MIT License
urllib3, 2.2.3, MIT License
xgboost, 1.6.2, Apache Software License
z3-solver, 4.13.0.0, MIT License
2 changes: 1 addition & 1 deletion deps_licenses/licenses_linux_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51e6ae120f9b905e160d3e94ca9b05c3
4e85bce827524070befed6799ac55e5e
30 changes: 15 additions & 15 deletions deps_licenses/licenses_mac_intel_user.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
Name, Version, License
Jinja2, 3.1.4, BSD License
MarkupSafe, 2.1.5, BSD License
PyYAML, 6.0.1, MIT License
PyYAML, 6.0.2, MIT License
brevitas, 0.10.2, UNKNOWN
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.8.1, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.15.3, The Unlicense (Unlicense)
filelock, 3.16.1, The Unlicense (Unlicense)
flatbuffers, 2.0.7, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.4, Apache Software License
fsspec, 2024.9.0, BSD License
huggingface-hub, 0.25.1, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.11, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
idna, 3.10, BSD License
importlib_resources, 6.4.5, Apache Software License
joblib, 1.4.2, BSD License
jsonpickle, 3.2.2, BSD License
jsonpickle, 3.3.0, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
numpy, 1.23.5, BSD License
onnx, 1.16.1, Apache License v2.0
onnxconverter-common, 1.13.0, MIT License
onnxmltools, 1.11.0, Apache Software License
onnxmltools, 1.12.0, Apache Software License
onnxoptimizer, 0.3.13, Apache License v2.0
onnxruntime, 1.18.0, MIT License
packaging, 24.1, Apache Software License; BSD License
pandas, 2.0.3, BSD License
protobuf, 4.25.5, 3-Clause BSD License
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
pytz, 2024.2, MIT License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skl2onnx, 1.17.0, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12.1, BSD License
sympy, 1.13.3, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.5.0, BSD License
torch, 2.2.2, BSD License
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
typing_extensions, 4.12.2, Python Software Foundation License
tzdata, 2024.1, Apache Software License
tzdata, 2024.2, Apache Software License
unfoldNd, 0.2.2, MIT License
urllib3, 2.2.2, MIT License
urllib3, 2.2.3, MIT License
xgboost, 1.6.2, Apache Software License
z3-solver, 4.13.0.0, MIT License
2 changes: 1 addition & 1 deletion deps_licenses/licenses_mac_intel_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51e6ae120f9b905e160d3e94ca9b05c3
4e85bce827524070befed6799ac55e5e
30 changes: 15 additions & 15 deletions deps_licenses/licenses_mac_silicon_user.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
Name, Version, License
Jinja2, 3.1.4, BSD License
MarkupSafe, 2.1.5, BSD License
PyYAML, 6.0.1, MIT License
PyYAML, 6.0.2, MIT License
brevitas, 0.10.2, UNKNOWN
certifi, 2024.6.2, Mozilla Public License 2.0 (MPL 2.0)
certifi, 2024.8.30, Mozilla Public License 2.0 (MPL 2.0)
charset-normalizer, 3.3.2, MIT License
coloredlogs, 15.0.1, MIT License
concrete-python, 2.8.1, BSD-3-Clause
dependencies, 2.0.1, BSD License
dill, 0.3.8, BSD License
filelock, 3.15.3, The Unlicense (Unlicense)
filelock, 3.16.1, The Unlicense (Unlicense)
flatbuffers, 2.0.7, Apache Software License
fsspec, 2024.6.0, BSD License
huggingface-hub, 0.23.4, Apache Software License
fsspec, 2024.9.0, BSD License
huggingface-hub, 0.25.1, Apache Software License
humanfriendly, 10.0, MIT License
hummingbird-ml, 0.4.11, MIT License
idna, 3.7, BSD License
importlib_resources, 6.4.0, Apache Software License
idna, 3.10, BSD License
importlib_resources, 6.4.5, Apache Software License
joblib, 1.4.2, BSD License
jsonpickle, 3.2.2, BSD License
jsonpickle, 3.3.0, BSD License
mpmath, 1.3.0, BSD License
networkx, 3.1, BSD License
numpy, 1.23.5, BSD License
onnx, 1.16.1, Apache License v2.0
onnxconverter-common, 1.13.0, MIT License
onnxmltools, 1.11.0, Apache Software License
onnxmltools, 1.12.0, Apache Software License
onnxoptimizer, 0.3.13, Apache License v2.0
onnxruntime, 1.18.0, MIT License
packaging, 24.1, Apache Software License; BSD License
pandas, 2.0.3, BSD License
protobuf, 4.25.5, 3-Clause BSD License
psutil, 5.9.8, BSD License
python-dateutil, 2.9.0.post0, Apache Software License; BSD License
pytz, 2024.1, MIT License
pytz, 2024.2, MIT License
requests, 2.32.3, Apache Software License
scikit-learn, 1.1.3, BSD License
scipy, 1.10.1, BSD License
six, 1.16.0, MIT License
skl2onnx, 1.12, Apache Software License
skl2onnx, 1.17.0, Apache Software License
skops, 0.5.0, MIT
skorch, 0.11.0, new BSD 3-Clause
sympy, 1.12.1, BSD License
sympy, 1.13.3, BSD License
tabulate, 0.8.10, MIT License
threadpoolctl, 3.5.0, BSD License
torch, 2.3.1, BSD License
tqdm, 4.66.4, MIT License; Mozilla Public License 2.0 (MPL 2.0)
tqdm, 4.66.5, MIT License; Mozilla Public License 2.0 (MPL 2.0)
typing_extensions, 4.12.2, Python Software Foundation License
tzdata, 2024.1, Apache Software License
tzdata, 2024.2, Apache Software License
unfoldNd, 0.2.2, MIT License
urllib3, 2.2.2, MIT License
urllib3, 2.2.3, MIT License
xgboost, 1.6.2, Apache Software License
z3-solver, 4.13.0.0, MIT License
2 changes: 1 addition & 1 deletion deps_licenses/licenses_mac_silicon_user.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51e6ae120f9b905e160d3e94ca9b05c3
4e85bce827524070befed6799ac55e5e
2 changes: 0 additions & 2 deletions docs/advanced_examples/QuantizationAwareTraining.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@
"outputs": [],
"source": [
"# pylint: disable-next=too-many-arguments\n",
"\n",
"\n",
"def train(\n",
" torch_model,\n",
" X_train,\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/using_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a model is compiled for CUDA, executing it on a non-CUDA-enabled machine will ra

| Feature | Built-in models | Custom Models | Deployment | DataFrame |
| ----------- | --------------- | ------------- | ---------- | --------- |
| GPU support | | | | |
| GPU support |||||
| | | | | |

{% hint style="warning" %}
Expand Down
Loading

0 comments on commit 0a750c2

Please sign in to comment.