Skip to content

Commit

Permalink
Ruff: Add and "fix" S106 (#11193)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Nov 12, 2024
1 parent ee77ea4 commit f87201b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ select = [
"UP",
"YTT",
"ASYNC",
"S2", "S5", "S7", "S101", "S104", "S105", "S108", "S112", "S311",
"S2", "S5", "S7", "S101", "S104", "S105", "S106", "S108", "S112", "S311",
"FBT001", "FBT003",
"A003", "A004", "A006",
"COM",
Expand Down
4 changes: 2 additions & 2 deletions unittests/test_user_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_validator_non_common_password_required(self):

def test_form_invalid_current_pass(self):
self.set_policy()
form = self.form_test("x", current_password="not current password")
form = self.form_test("x", current_password="not current password") # noqa: S106
self.assertFalse(form.is_valid())
self.assertEqual(
form.errors["__all__"][0],
Expand All @@ -158,6 +158,6 @@ def test_form_same_pass_as_before(self):

def test_form_diff_confirm_password(self):
self.set_policy()
form = self.form_test(password="x", confirm_password="y")
form = self.form_test(password="x", confirm_password="y") # noqa: S106
self.assertFalse(form.is_valid())
self.assertEqual(form.errors["__all__"][0], "Passwords do not match.")

0 comments on commit f87201b

Please sign in to comment.