Skip to content

Commit 75bd645

Browse files
authored
Fix the CI (#2178)
* Autoupdate pre-commit * update pyproject.toml to require setuptools>=42,<70.0.0 * Fix packaging in AiVad * Exit the pre-merge tests as soon as there is 1 failed test. * Add upper-bound to open-clip-torch as it causes onnx export to fail
1 parent c3e0b38 commit 75bd645

File tree

126 files changed

+45
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+45
-154
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.5.0
6+
rev: v4.6.0
77
hooks:
88
# list of supported hooks: https://pre-commit.com/hooks.html
99
- id: trailing-whitespace
@@ -15,7 +15,7 @@ repos:
1515

1616
# Ruff version.
1717
- repo: https://github.com/charliermarsh/ruff-pre-commit
18-
rev: "v0.1.5"
18+
rev: "v0.5.1"
1919
hooks:
2020
# Run the linter.
2121
- id: ruff
@@ -27,35 +27,35 @@ repos:
2727

2828
# python static type checking
2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: "v1.7.0"
30+
rev: "v1.10.1"
3131
hooks:
3232
- id: mypy
3333
additional_dependencies: [types-PyYAML, types-setuptools]
3434
exclude: "tests"
3535

3636
# add bandit for security checks
3737
- repo: https://github.com/PyCQA/bandit
38-
rev: 1.7.7
38+
rev: 1.7.9
3939
hooks:
4040
- id: bandit
4141
args: ["-c", "pyproject.toml"]
4242
additional_dependencies: ["bandit[toml]"]
4343

4444
# notebooks.
4545
- repo: https://github.com/nbQA-dev/nbQA
46-
rev: 1.7.0
46+
rev: 1.8.5
4747
hooks:
4848
- id: nbqa-ruff
4949
# Ignore unsorted imports. This is because jupyter notebooks can import
5050
# packages in a different order than the rest of the codebase.
5151
args: ["--ignore=D100,D407,I001"]
5252

5353
- repo: https://github.com/pre-commit/mirrors-prettier
54-
rev: v3.1.0
54+
rev: v4.0.0-alpha.8
5555
hooks:
5656
- id: prettier
5757

5858
- repo: https://github.com/igorshubovych/markdownlint-cli
59-
rev: v0.37.0
59+
rev: v0.41.0
6060
hooks:
6161
- id: markdownlint

MAINTAINERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We welcome contributions from everyone. If you're interested in helping out, ple
2828
Here is a list of contributors of Anomalib:
2929

3030
<a href="https://github.com/openvinotoolkit/anomalib/graphs/contributors">
31-
<img src="https://contrib.rocks/image?repo=openvinotoolkit/anomalib" />
31+
<img src="https://contrib.rocks/image?repo=openvinotoolkit/anomalib" alt="Contributors to openvinotoolkit/anomalib" />
3232
</a>
3333

3434
## 🙏 Acknowledgements

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
<img src="https://raw.githubusercontent.com/openvinotoolkit/anomalib/main/docs/source/_static/images/logos/anomalib-wide-blue.png" width="600px">
3+
<img src="https://raw.githubusercontent.com/openvinotoolkit/anomalib/main/docs/source/_static/images/logos/anomalib-wide-blue.png" width="600px" alt="Anomalib Logo">
44

55
**A library for benchmarking, developing and deploying deep learning anomaly detection algorithms**
66

@@ -30,7 +30,7 @@
3030
Anomalib is a deep learning library that aims to collect state-of-the-art anomaly detection algorithms for benchmarking on both public and private datasets. Anomalib provides several ready-to-use implementations of anomaly detection algorithms described in the recent literature, as well as a set of tools that facilitate the development and implementation of custom models. The library has a strong focus on visual anomaly detection, where the goal of the algorithm is to detect and/or localize anomalies within images or videos in a dataset. Anomalib is constantly updated with new algorithms and training/inference extensions, so keep checking!
3131

3232
<p align="center">
33-
<img src="https://raw.githubusercontent.com/openvinotoolkit/anomalib/main/docs/source/_static/images/readme.png" width="1000">
33+
<img src="https://raw.githubusercontent.com/openvinotoolkit/anomalib/main/docs/source/_static/images/readme.png" width="1000" alt="A prediction made by anomalib">
3434
</p>
3535

3636
## Key features
@@ -304,5 +304,5 @@ For those who would like to contribute to the library, see [CONTRIBUTING.md](CON
304304
Thank you to all of the people who have already made a contribution - we appreciate your support!
305305

306306
<a href="https://github.com/openvinotoolkit/anomalib/graphs/contributors">
307-
<img src="https://contrib.rocks/image?repo=openvinotoolkit/anomalib" />
307+
<img src="https://contrib.rocks/image?repo=openvinotoolkit/anomalib" alt="Contributors to openvinotoolkit/anomalib" />
308308
</a>

notebooks/500_use_cases/501_dobot/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dobot Use Case Tutorial
22

3-
| Notebook | | |
4-
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- |
3+
| Notebook | Link |
4+
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
55
| Training a Model | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openvinotoolkit/anomalib/blob/main/notebooks/500_use_cases/501_dobot/501a_training_a_model_with_cubes_from_a_robotic_arm.ipynb) |
66
| Inference with the Model | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/openvinotoolkit/anomalib/blob/main/notebooks/500_use_cases/501_dobot/501b_inference_with_a_robotic_arm.ipynb) |
77

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ core = [
5050
"lightning>=2.2",
5151
"torch>=2",
5252
"torchmetrics>=1.3.2",
53-
"open-clip-torch>=2.23.0",
53+
# NOTE: open-clip-torch throws the following error on v2.26.1
54+
# torch.onnx.errors.UnsupportedOperatorError: Exporting the operator
55+
# 'aten::_native_multi_head_attention' to ONNX opset version 14 is not supported
56+
"open-clip-torch>=2.23.0,<2.26.1",
5457
]
5558
openvino = ["openvino>=2024.0", "nncf>=2.10.0", "onnx>=1.16.0"]
5659
loggers = [

src/anomalib/callbacks/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) 2022 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
76
import logging
87
from importlib import import_module
98
from pathlib import Path

src/anomalib/callbacks/metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) 2023 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
76
import logging
87
from enum import Enum
98
from typing import Any

src/anomalib/callbacks/model_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) 2022 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
76
import logging
87

98
import torch

src/anomalib/callbacks/nncf/callback.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) 2022 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
76
import subprocess # nosec B404
87
from pathlib import Path
98
from typing import TYPE_CHECKING, Any

src/anomalib/callbacks/nncf/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (C) 2022 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
76
import logging
87
from copy import copy
98
from typing import TYPE_CHECKING, Any

0 commit comments

Comments
 (0)