Skip to content

Commit

Permalink
Fixed deprecated ruff linting usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
canismarko committed Jul 23, 2024
1 parent 8aab6f1 commit 9ec4c4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 src/
# default set of ruff rules with GitHub Annotations
ruff --output-format=github --target-version=py37 --exit-zero .
ruff check --output-format=github --target-version=py37 --exit-zero src/
- name: Test with pytest
run: |
pytest
pytest src/
11 changes: 6 additions & 5 deletions src/ophydregistry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
except ImportError:
_AggregateSignalState = ophydobj.OphydObject

from .exceptions import (
ComponentNotFound,
InvalidComponentLabel,
MultipleComponentsFound,
)

# Sentinal value for default parameters
UNSET = object()

Expand All @@ -24,11 +30,6 @@
else:
typhos_available = True

from .exceptions import (
ComponentNotFound,
InvalidComponentLabel,
MultipleComponentsFound,
)

log = logging.getLogger(__name__)

Expand Down

0 comments on commit 9ec4c4d

Please sign in to comment.