Skip to content

Commit

Permalink
style: Bumps ruff to 0.1.14 (#232)
Browse files Browse the repository at this point in the history
* chore: Bumps ruff to 0.1.14

* ci: Updates CI

* docs: Update README badge

* style: Fixes lint & format
  • Loading branch information
frgfm authored Jan 24, 2024
1 parent c66627f commit 2a8b11b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/collect_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import locale
import os
import re
import subprocess
import subprocess # noqa S404
import sys
from pathlib import Path
from typing import NamedTuple
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
architecture: x64
- name: Run ruff
run: |
pip install ruff==0.1.11
pip install ruff==0.1.14
ruff --version
ruff check --diff .
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
architecture: x64
- name: Run ruff
run: |
pip install ruff==0.1.11
pip install ruff==0.1.14
ruff --version
ruff format --check --diff .
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.1.11'
rev: 'v0.1.14'
hooks:
- id: ruff
args:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<a href="https://github.com/astral-sh/ruff">
<img src="https://img.shields.io/badge/Linter-Ruff-FCC21B?style=flat-square&logo=ruff&logoColor=white" alt="ruff">
</a>
<a href="https://github.com/psf/black">
<img src="https://img.shields.io/badge/Formatter-Black-000000?style=flat-square&logo=Python&logoColor=white" alt="black">
<a href="https://github.com/astral-sh/ruff">
<img src="https://img.shields.io/badge/Formatter-Ruff-FCC21B?style=flat-square&logo=Python&logoColor=white" alt="ruff">
</a>
<a href="https://www.codacy.com/gh/frgfm/torch-cam/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=frgfm/torch-cam&amp;utm_campaign=Badge_Grade"><img src="https://app.codacy.com/project/badge/Grade/87eaeec3e15442188f96c36bace5faf4"/></a>
<a href="https://codecov.io/gh/frgfm/torch-cam">
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test = [
"pytest-pretty>=1.0.0,<2.0.0",
]
quality = [
"ruff==0.1.11",
"ruff==0.1.14",
"mypy==1.8.0",
"pre-commit>=3.0.0,<4.0.0",
]
Expand Down
2 changes: 1 addition & 1 deletion torchcam/methods/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ._utils import locate_linear_layer
from .core import _CAM

__all__ = ["CAM", "ScoreCAM", "SSCAM", "ISCAM"]
__all__ = ["CAM", "ISCAM", "SSCAM", "ScoreCAM"]


class CAM(_CAM):
Expand Down
2 changes: 1 addition & 1 deletion torchcam/methods/gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .core import _CAM

__all__ = ["GradCAM", "GradCAMpp", "SmoothGradCAMpp", "XGradCAM", "LayerCAM"]
__all__ = ["GradCAM", "GradCAMpp", "LayerCAM", "SmoothGradCAMpp", "XGradCAM"]


class _GradCAM(_CAM):
Expand Down

0 comments on commit 2a8b11b

Please sign in to comment.