Skip to content

Commit

Permalink
Removes test file from ruff.toml
Browse files Browse the repository at this point in the history
The exceptions for capital case functions (Tango commands) are moved to
the functions that offend them instead of creating an exception for the
whole file.
  • Loading branch information
mockoocy authored and marcus-oscarsson committed Feb 26, 2025
1 parent c8278a3 commit 731b7bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7118,6 +7118,3 @@ convention = "google"
"PT022",
"S108",
]
"test/pytest/test_hwo_tango_shutter.py" = [
"N802"
]
4 changes: 2 additions & 2 deletions test/pytest/test_hwo_tango_shutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

@command()
def Open(self):
def Open(self): # noqa: N802
self._is_open = True

@command()
def Close(self):
def Close(self): # noqa: N802
self._is_open = False

def dev_state(self):
Expand Down

0 comments on commit 731b7bc

Please sign in to comment.