Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ body:
value: |
OS information:
- OS: [e.g. Ubuntu 20.04]
- Python version: [e.g. 3.10.0]
- Anomalib version: [e.g. 0.3.6]
- PyTorch version: [e.g. 1.9.0]
- CUDA/cuDNN version: [e.g. 11.1]
- Python version: [e.g. 3.13.0]
- Anomalib version: [e.g. 2.3.0]
- PyTorch version: [e.g. 2.5.1]
- CUDA/cuDNN version: [e.g. 12.4]
- GPU models and configuration: [e.g. 2x GeForce RTX 3090]
- Any other relevant information: [e.g. I'm using a custom dataset]
validations:
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/code-quality/pre-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# steps:
# - uses: ./.github/actions/code-quality/pre-commit
# with:
# python-version: "3.11"
# python-version: "3.13"
#
# Note: Requires configured pre-commit hooks in repository

Expand All @@ -45,7 +45,7 @@ inputs:
python-version:
description: "Python version to use"
required: false
default: "3.10"
default: "3.13"
node-version:
description: "Node.js version to use"
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/pytest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# steps:
# - uses: ./.github/actions/pytest
# with:
# python-version: "3.11"
# python-version: "3.13"
# test-type: "unit"
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
#
Expand All @@ -57,7 +57,7 @@ inputs:
python-version:
description: "Python version to use"
required: false
default: "3.10"
default: "3.13"
test-type:
description: "Type of tests to run (unit/integration/all)"
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/security/bandit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ runs:
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: "3.10"
python-version: "3.13"

- name: Install Bandit
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/security/trivy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.10"
python-version: "3.13"
- name: Install dependencies
run: python -m pip install pip-tools
- name: Freeze dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_reusable-artifact-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# - Retention configuration
#
# Required Inputs:
# - python-version: Python version for building (default: "3.10")
# - python-version: Python version for building (default: "3.11")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

# - verify-package: Enable package verification (default: true)
#
# Outputs:
Expand All @@ -46,7 +46,7 @@
# build:
# uses: ./.github/workflows/_reusable-artifact-builder.yaml
# with:
# python-version: "3.10"
# python-version: "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

# verify-package: true
#
# Note: Requires proper Python project structure and build configuration
Expand All @@ -59,7 +59,7 @@ on:
python-version:
description: "Python version for building"
type: string
default: "3.10"
default: "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here?

verify-package:
description: "Run package verification"
type: boolean
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_reusable-code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# - Status updates
#
# Required Inputs:
# - python-version: Python version for checks (default: "3.10")
# - python-version: Python version for checks (default: "3.13")
#
# Example Usage:
# 1. Default Configuration:
Expand All @@ -40,7 +40,7 @@
# quality:
# uses: ./.github/workflows/_reusable-code-quality.yaml
# with:
# python-version: "3.11"
# python-version: "3.13"
#
# Note: Requires configured pre-commit hooks in repository

Expand All @@ -52,7 +52,7 @@ on:
python-version:
description: "Python version for checks"
type: string
default: "3.10"
default: "3.13"

permissions:
contents: read
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_reusable-pr-title-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# - Detailed feedback
#
# Required Inputs:
# - python-version: Python version for validation (default: "3.10")
# - python-version: Python version for validation (default: "3.13")
#
# Example Usage:
# 1. Basic Validation:
Expand All @@ -37,7 +37,7 @@
# pr-title-check:
# uses: ./.github/workflows/_reusable-pr-title-check.yaml
# with:
# python-version: "3.11"
# python-version: "3.13"
#
# Note: Requires Commitizen configuration in pyproject.toml

Expand All @@ -49,7 +49,7 @@ on:
python-version:
description: "Python version for validation"
type: string
default: "3.10"
default: "3.13"

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-release-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# uses: ./.github/workflows/_reusable-release-validation.yaml
# with:
# version: "v1.2.3"
# python-version: "3.10"
# python-version: "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

# secrets:
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
#
Expand All @@ -68,7 +68,7 @@
# uses: ./.github/workflows/_reusable-release-validation.yaml
# with:
# version: "v1.2.3-rc1"
# python-version: "3.10"
# python-version: "3.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here. It would be great to have consistency

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, would you prefer these examples/defaults to reflect the minimum supported version (reverting to 3.10, as it was) or the latest target version ?

# allow-prerelease: true
# secrets:
# codecov-token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_reusable-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# - Artifact creation
#
# Required Inputs:
# - python-version: Python version for tests (default: "3.10")
# - python-version: Python version for tests (default: "3.13")
# - test-type: Type of test to run (unit/integration/e2e)
# - runner: Runner to use for the tests
# - timeout: Test timeout in minutes
Expand All @@ -52,7 +52,7 @@
# test:
# uses: ./.github/workflows/_reusable-test-suite.yaml
# with:
# python-version: "3.11"
# python-version: "3.13"
# test-type: "unit"
# timeout: 30
# secrets:
Expand All @@ -68,7 +68,7 @@ on:
python-version:
description: "Python version to use for tests"
type: string
default: "3.10"
default: "3.13"
test-type:
description: "Type of test to run (unit/integration/e2e)"
type: string
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_reusable-version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# - PR creation
#
# Required Inputs:
# - python-version: Python version for bumping (default: "3.10")
# - python-version: Python version for bumping (default: "3.13")
# - create-pr: Whether to create a PR (default: true)
# - target-branch: Target branch for PR (default: "main")
#
Expand All @@ -51,7 +51,7 @@
# version-bump:
# uses: ./.github/workflows/_reusable-version-bump.yaml
# with:
# python-version: "3.11"
# python-version: "3.13"
# create-pr: false
# secrets:
# github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -66,7 +66,7 @@ on:
python-version:
description: "Python version for version bumping"
type: string
default: "3.10"
default: "3.13"
create-pr:
description: "Whether to create a pull request"
type: boolean
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ jobs:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/_reusable-pr-title-check.yaml
with:
python-version: "3.10"
python-version: "3.13"

# Code quality job using reusable workflow
quality:
if: github.event.pull_request.draft != true
uses: ./.github/workflows/_reusable-code-quality.yaml
with:
python-version: "3.10"
python-version: "3.13"

# Test suite job using reusable workflow
unit-tests:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
with:
python-version: "3.10"
python-version: "3.13"
- name: Install Tox
run: pip install tox
- name: Code quality checks
Expand All @@ -43,8 +43,8 @@ jobs:
max-parallel: 1
matrix:
include:
- python-version: "3.10"
tox-env: "py310"
- python-version: "3.13"
tox-env: "py313"
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
contents: read
with:
version: ${{ github.event_name == 'push' && github.ref_name || inputs.version }}
python-version: "3.10"
python-version: "3.13"
verify-package: true
dry-run: ${{ github.event.inputs.dry_run || false }}
allow-prerelease: true
Expand Down
2 changes: 1 addition & 1 deletion docs/source/markdown/guides/developer/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Set up your development environment to start contributing. This involves install
1. Create and activate a new Conda environment:

```bash
conda create -n anomalib_dev python=3.10
conda create -n anomalib_dev python=3.13
conda activate anomalib_dev
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/snippets/install/source.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use of virtual environment is highy recommended
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "highy" should be "highly".

Suggested change
# Use of virtual environment is highy recommended
# Use of virtual environment is highly recommended

Copilot uses AI. Check for mistakes.
# Using conda
yes | conda create -n anomalib_env python=3.10
yes | conda create -n anomalib_env python>=3.10
Copy link

Copilot AI Nov 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conda create command syntax python>=3.10 is incorrect. Conda expects python=3.10 or python=3.13 but does not support constraint operators like >= in the package specification. This should be changed to a specific version like python=3.13 or python=3.10.

Suggested change
yes | conda create -n anomalib_env python>=3.10
yes | conda create -n anomalib_env python=3.10

Copilot uses AI. Check for mistakes.
conda activate anomalib_env

# Or using your favorite virtual environment
Expand Down
12 changes: 7 additions & 5 deletions examples/api/02_data/mvtecad2.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@

# 2. Custom Transforms
print("\n2. Custom Transforms")
transform = Compose([
ToImage(),
Resize((256, 256)),
ToDtype(torch.float32, scale=True),
])
transform = Compose(
[
ToImage(),
Resize((256, 256)),
ToDtype(torch.float32, scale=True),
],
)

# Create dataset with custom transform
datamodule = MVTecAD2(
Expand Down
8 changes: 5 additions & 3 deletions examples/api/03_models/efficient_ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
model = EfficientAd()

# OPTIONAL 2. Set up a pre-processing transformation
transform = Compose([
Resize(size=(512, 512)),
])
transform = Compose(
[
Resize(size=(512, 512)),
],
)
pre_processor = PreProcessor(transform=transform)

# 3. Custom Configuration
Expand Down
4 changes: 2 additions & 2 deletions examples/notebooks/02_data/datamodules/tabular.ipynb
Git LFS file not shown
Loading
Loading