Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff: Add and "fix" S106 #11193

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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", "S112", "S311",
"S2", "S5", "S7", "S101", "S104", "S105", "S106", "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.")
Loading