Skip to content

Commit

Permalink
COMP: Fix ruff settings to avoid enforcing pytest style
Browse files Browse the repository at this point in the history
Since the base class associated with scripted module class `ScriptedLoadableModuleTest`
is `unittest.TestCase`, using function like assertEqual is legitimate and
should not be replaced with `assert`.

References:
* https://docs.python.org/3/library/unittest.html#unittest.TestCase
* https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
  • Loading branch information
jcfr committed Dec 12, 2024
1 parent ee16952 commit e148f93
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ select = [
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"S", # flake8-bandit
Expand Down

0 comments on commit e148f93

Please sign in to comment.