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

Allow booleans in @override methods #8882

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Allow booleans in @override methods #8882

merged 1 commit into from
Nov 28, 2023

Conversation

charliermarsh
Copy link
Member

Closes #8867.

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+0 -37 violations, +0 -0 fixes in 41 projects)

zulip/zulip (+0 -37 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --no-preview --select ALL

- manage.py:78:30: FBT001 Boolean-typed positional argument in function definition
- manage.py:78:30: FBT002 Boolean default positional argument in function definition
- zerver/forms.py:338:20: FBT001 Boolean-typed positional argument in function definition
- zerver/forms.py:338:20: FBT002 Boolean default positional argument in function definition
- zerver/forms.py:360:9: FBT001 Boolean-typed positional argument in function definition
- zerver/forms.py:360:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/safe_session_cached_db.py:21:20: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/safe_session_cached_db.py:21:20: FBT002 Boolean default positional argument in function definition
- zerver/lib/test_runner.py:364:9: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/test_runner.py:364:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/test_runner.py:365:9: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/test_runner.py:365:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:125:45: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:125:45: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:160:62: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:160:62: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:205:63: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:214:64: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:230:66: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:230:66: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:320:45: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:320:45: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:351:62: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:351:62: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:412:63: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:422:64: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:452:66: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:452:66: FBT002 Boolean default positional argument in function definition
- zerver/tests/test_auth_backends.py:3343:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3471:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3471:9: FBT002 Boolean default positional argument in function definition
- zerver/tests/test_auth_backends.py:3921:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3923:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3923:9: FBT002 Boolean default positional argument in function definition
- zerver/tornado/django_api.py:39:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tornado/django_api.py:39:9: FBT002 Boolean default positional argument in function definition
- zerver/tornado/django_api.py:41:9: FBT002 Boolean default positional argument in function definition

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
FBT001 21 0 21 0 0
FBT002 16 0 16 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+0 -38 violations, +0 -0 fixes in 41 projects)

zulip/zulip (+0 -38 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --preview --select ALL

- manage.py:78:30: FBT001 Boolean-typed positional argument in function definition
- manage.py:78:30: FBT002 Boolean default positional argument in function definition
- zerver/forms.py:338:20: FBT001 Boolean-typed positional argument in function definition
- zerver/forms.py:338:20: FBT002 Boolean default positional argument in function definition
- zerver/forms.py:360:9: FBT001 Boolean-typed positional argument in function definition
- zerver/forms.py:360:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/safe_session_cached_db.py:21:20: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/safe_session_cached_db.py:21:20: FBT002 Boolean default positional argument in function definition
- zerver/lib/test_runner.py:364:9: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/test_runner.py:364:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/test_runner.py:365:9: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/test_runner.py:365:9: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:125:45: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:125:45: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:160:62: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:160:62: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/local.py:205:63: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:214:64: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:230:66: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/local.py:230:66: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:320:45: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:320:45: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:351:62: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:351:62: FBT002 Boolean default positional argument in function definition
- zerver/lib/upload/s3.py:412:63: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:422:64: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:452:66: FBT001 Boolean-typed positional argument in function definition
- zerver/lib/upload/s3.py:452:66: FBT002 Boolean default positional argument in function definition
- zerver/tests/test_auth_backends.py:3343:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3471:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3471:9: FBT002 Boolean default positional argument in function definition
- zerver/tests/test_auth_backends.py:3921:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3923:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tests/test_auth_backends.py:3923:9: FBT002 Boolean default positional argument in function definition
- zerver/tornado/django_api.py:39:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tornado/django_api.py:39:9: FBT002 Boolean default positional argument in function definition
- zerver/tornado/django_api.py:41:9: FBT001 Boolean-typed positional argument in function definition
- zerver/tornado/django_api.py:41:9: FBT002 Boolean default positional argument in function definition

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
FBT001 22 0 22 0 0
FBT002 16 0 16 0 0

@charliermarsh charliermarsh merged commit 5d554ed into main Nov 28, 2023
17 checks passed
@charliermarsh charliermarsh deleted the charlie/fbt branch November 28, 2023 21:42
@charliermarsh
Copy link
Member Author

Ecosystem checks are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

please allow boolean positional arguments (FBT001, FBT002) in case of @override
1 participant