Skip to content

Commit

Permalink
Update Ruff, set case-sensitive = true
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Wouda committed Jul 12, 2023
1 parent 3362a38 commit e5a6c0c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.277
rev: v0.0.278
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions alns/ALNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import numpy.random as rnd

from alns.accept import AcceptanceCriterion
from alns.Outcome import Outcome
from alns.Result import Result
from alns.select import OperatorSelectionScheme
from alns.State import State
from alns.Statistics import Statistics
from alns.accept import AcceptanceCriterion
from alns.select import OperatorSelectionScheme
from alns.stop import StoppingCriterion


Expand Down
2 changes: 1 addition & 1 deletion alns/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .ALNS import ALNS
from .show_versions import show_versions
from .State import State
from .show_versions import show_versions
2 changes: 1 addition & 1 deletion alns/select/MABSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from numpy.random import RandomState

from alns.Outcome import Outcome
from alns.select.OperatorSelectionScheme import OperatorSelectionScheme
from alns.State import ContextualState
from alns.select.OperatorSelectionScheme import OperatorSelectionScheme

try:
from mabwiser.mab import MAB, LearningPolicy, NeighborhoodPolicy
Expand Down
2 changes: 1 addition & 1 deletion alns/select/RouletteWheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import numpy as np
from numpy.random import RandomState

from alns.select.OperatorSelectionScheme import OperatorSelectionScheme
from alns.State import State
from alns.select.OperatorSelectionScheme import OperatorSelectionScheme


class RouletteWheel(OperatorSelectionScheme):
Expand Down
2 changes: 1 addition & 1 deletion alns/select/SegmentedRouletteWheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import numpy as np

from alns.select.RouletteWheel import RouletteWheel
from alns.State import State
from alns.select.RouletteWheel import RouletteWheel

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ select = ["E", "F", "I", "NPY", "RET", "RSE", "RUF", "SLF", "SIM", "TCH"]
"__init__.py" = ["F401"] # unused imports

[tool.ruff.isort]
# case-sensitive = true
case-sensitive = true
known-first-party = ["alns"]

[tool.mypy]
Expand Down

0 comments on commit e5a6c0c

Please sign in to comment.