Skip to content

Commit

Permalink
Remove # noqa: N999 from shebangs
Browse files Browse the repository at this point in the history
  • Loading branch information
neob91-close committed Dec 12, 2024
1 parent b8e2f6d commit 4f4ea8a
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion bin/backfix-duplicate-categories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# Duplicate categories were created because of an inadequate unique constraint
# in MySQL. This script deletes duplicate categories with no messages
# associated. If two or more duplicate categories exist with associated
Expand Down
2 changes: 1 addition & 1 deletion bin/backfix-generic-imap-separators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# We previously didn't store IMAP path separators for generic imap accounts.
# This script backfixes the accounts.

Expand Down
2 changes: 1 addition & 1 deletion bin/check-attachments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# Check that we can fetch attachments for 99.9% of our syncing accounts.
import concurrent.futures
import datetime
Expand Down
2 changes: 1 addition & 1 deletion bin/clear-all-heartbeats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


from sys import exit
Expand Down
2 changes: 1 addition & 1 deletion bin/clear-db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
import argparse
import sys

Expand Down
2 changes: 1 addition & 1 deletion bin/clear-heartbeat-status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


from sys import exit
Expand Down
2 changes: 1 addition & 1 deletion bin/clear-kv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python

from sys import exit

Expand Down
2 changes: 1 addition & 1 deletion bin/correct-autoincrements.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/create-db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import os
Expand Down
2 changes: 1 addition & 1 deletion bin/create-encryption-keys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import binascii
Expand Down
2 changes: 1 addition & 1 deletion bin/create-event-contact-associations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
"""
Create event contact associations for events that don't have any.
"""
Expand Down
2 changes: 1 addition & 1 deletion bin/delete-account-data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
"""
Deletes an account's data permanently.
Expand Down
2 changes: 1 addition & 1 deletion bin/delete-marked-accounts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
"""
Searches for accounts that are marked for deletion and deletes
all of their data
Expand Down
2 changes: 1 addition & 1 deletion bin/detect-missing-sync-host.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/get-accounts-for-host.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/get-id.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# Query the id corresponding to a public id and vice-versa.


Expand Down
2 changes: 1 addition & 1 deletion bin/get-object.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# Query the id corresponding to a public id and vice-versa.


Expand Down
2 changes: 1 addition & 1 deletion bin/inbox-api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion bin/inbox-auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import sys
Expand Down
2 changes: 1 addition & 1 deletion bin/inbox-console.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


from setproctitle import setproctitle
Expand Down
2 changes: 1 addition & 1 deletion bin/inbox-start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import os
Expand Down
2 changes: 1 addition & 1 deletion bin/migrate-db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import os
Expand Down
2 changes: 1 addition & 1 deletion bin/mysql-prompt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import subprocess
Expand Down
2 changes: 1 addition & 1 deletion bin/purge-transaction-log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
"""
Deletes entries in the transaction older than `days_ago` days( as measured by
the created_at column)
Expand Down
2 changes: 1 addition & 1 deletion bin/remove-message-attachments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
import datetime
import enum
import logging
Expand Down
2 changes: 1 addition & 1 deletion bin/restart-forgotten-accounts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python

import time

Expand Down
2 changes: 1 addition & 1 deletion bin/set-desired-host.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/set-throttled.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
# throttle or unthrottle an account


Expand Down
2 changes: 1 addition & 1 deletion bin/stamp-db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import os
Expand Down
2 changes: 1 addition & 1 deletion bin/sync-single-account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python

import logging
from threading import BoundedSemaphore
Expand Down
2 changes: 1 addition & 1 deletion bin/syncback-service.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python
"""
Run the syncback service separately. You should run this if you run the
API under something like gunicorn. (For convenience, the bin/inbox-api script
Expand Down
2 changes: 1 addition & 1 deletion bin/syncback-stats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python

import click
from sqlalchemy import func
Expand Down
2 changes: 1 addition & 1 deletion bin/unschedule-account-syncs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/update-categories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


import click
Expand Down
2 changes: 1 addition & 1 deletion bin/verify-db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python # noqa: N999
#!/usr/bin/env python


from inbox.config import config
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ unfixable = [
]

[tool.ruff.lint.per-file-ignores]
"bin/**.py" = ["T201", "E402"]
"bin/**.py" = ["T201", "E402", "N999"]
"migrations/**.py" = ["T201", "E402"]
"tests/**.py" = ["ANN"]

0 comments on commit 4f4ea8a

Please sign in to comment.