Skip to content

Commit

Permalink
build(deps): bump ruff from 0.8.6 to 0.9.3 (#3108)
Browse files Browse the repository at this point in the history
* build(deps): bump ruff from 0.8.6 to 0.9.3

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.9.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.8.6...0.9.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Reformat Python files with new version of ruff.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sven Marnach <[email protected]>
  • Loading branch information
dependabot[bot] and smarnach authored Jan 28, 2025
1 parent 37a6002 commit dd1f83e
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 43 deletions.
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PyYAML==6.0.2
redis==5.0.8
requests-mock==1.12.1
requests==2.32.3
ruff==0.8.6
ruff==0.9.3
sentry-sdk==2.20.0
Sphinx==8.1.3
sphinx-rtd-theme==3.0.2
Expand Down
38 changes: 19 additions & 19 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -841,25 +841,25 @@ rsa==4.9 \
--hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \
--hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21
# via google-auth
ruff==0.8.6 \
--hash=sha256:0509e8da430228236a18a677fcdb0c1f102dd26d5520f71f79b094963322ed25 \
--hash=sha256:0c000a471d519b3e6cfc9c6680025d923b4ca140ce3e4612d1a2ef58e11f11fe \
--hash=sha256:248b1fb3f739d01d528cc50b35ee9c4812aa58cc5935998e776bf8ed5b251e75 \
--hash=sha256:45a56f61b24682f6f6709636949ae8cc82ae229d8d773b4c76c09ec83964a95a \
--hash=sha256:496dd38a53aa173481a7d8866bcd6451bd934d06976a2505028a50583e001b76 \
--hash=sha256:52d587092ab8df308635762386f45f4638badb0866355b2b86760f6d3c076188 \
--hash=sha256:54799ca3d67ae5e0b7a7ac234baa657a9c1784b48ec954a094da7c206e0365b1 \
--hash=sha256:61323159cf21bc3897674e5adb27cd9e7700bab6b84de40d7be28c3d46dc67cf \
--hash=sha256:7ae4478b1471fc0c44ed52a6fb787e641a2ac58b1c1f91763bafbc2faddc5117 \
--hash=sha256:7d7fc2377a04b6e04ffe588caad613d0c460eb2ecba4c0ccbbfe2bc973cbc162 \
--hash=sha256:91a7ddb221779871cf226100e677b5ea38c2d54e9e2c8ed847450ebbdf99b32d \
--hash=sha256:9257aa841e9e8d9b727423086f0fa9a86b6b420fbf4bf9e1465d1250ce8e4d8d \
--hash=sha256:bc3c083c50390cf69e7e1b5a5a7303898966be973664ec0c4a4acea82c1d4315 \
--hash=sha256:dcad24b81b62650b0eb8814f576fc65cfee8674772a6e24c9b747911801eeaa5 \
--hash=sha256:defed167955d42c68b407e8f2e6f56ba52520e790aba4ca707a9c88619e580e3 \
--hash=sha256:e169ea1b9eae61c99b257dc83b9ee6c76f89042752cb2d83486a7d6e48e8f764 \
--hash=sha256:e88b8f6d901477c41559ba540beeb5a671e14cd29ebd5683903572f4b40a9807 \
--hash=sha256:f1d70bef3d16fdc897ee290d7d20da3cbe4e26349f62e8a0274e7a3f4ce7a905
ruff==0.9.3 \
--hash=sha256:006e5de2621304c8810bcd2ee101587712fa93b4f955ed0985907a36c427e0c2 \
--hash=sha256:040ceb7f20791dfa0e78b4230ee9dce23da3b64dd5848e40e3bf3ab76468dcf4 \
--hash=sha256:2dc153c25e715be41bb228bc651c1e9b1a88d5c6e5ed0194fa0dfea02b026439 \
--hash=sha256:33866c3cc2a575cbd546f2cd02bdd466fed65118e4365ee538a3deffd6fcb730 \
--hash=sha256:5a5a46e09355695fbdbb30ed9889d6cf1c61b77b700a9fafc21b41f097bfbba4 \
--hash=sha256:646909a1e25e0dc28fbc529eab8eb7bb583079628e8cbe738192853dbbe43af5 \
--hash=sha256:7f39b879064c7d9670197d91124a75d118d00b0990586549949aae80cdc16624 \
--hash=sha256:800d773f6d4d33b0a3c60e2c6ae8f4c202ea2de056365acfa519aa48acf28e0b \
--hash=sha256:8293f89985a090ebc3ed1064df31f3b4b56320cdfcec8b60d3295bddb955c22a \
--hash=sha256:90230a6b8055ad47d3325e9ee8f8a9ae7e273078a66401ac66df68943ced029b \
--hash=sha256:96a87ec31dc1044d8c2da2ebbed1c456d9b561e7d087734336518181b26b3aa5 \
--hash=sha256:9bb7554aca6f842645022fe2d301c264e6925baa708b392867b7a62645304df4 \
--hash=sha256:a187171e7c09efa4b4cc30ee5d0d55a8d6c5311b3e1b74ac5cb96cc89bafc43c \
--hash=sha256:ba6eea4459dbd6b1be4e6bfc766079fb9b8dd2e5a35aff6baee4d9b1514ea519 \
--hash=sha256:c4bb09d2bbb394e3730d0918c00276e79b2de70ec2a5231cd4ebb51a57df9ba1 \
--hash=sha256:c59ab92f8e92d6725b7ded9d4a31be3ef42688a115c6d3da9457a5bda140e2b4 \
--hash=sha256:cabc332b7075a914ecea912cd1f3d4370489c8018f2c945a30bcc934e3bc06a6 \
--hash=sha256:eabe5eb2c19a42f4808c03b82bd313fc84d4e395133fb3fc1b1516170a31213c
# via -r requirements.in
s3transfer==0.10.1 \
--hash=sha256:5683916b4c724f799e600f41dd9e10a9ff19871bf87623cc8f491cb4f5fa0a19 \
Expand Down
4 changes: 3 additions & 1 deletion smoketests/bin/download_sym_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@

class StdoutMetrics(BackendBase):
def emit(self, record):
click.echo(f"metric: {record.stat_type} {record.key} {record.value/1000:,.2f}s")
click.echo(
f"metric: {record.stat_type} {record.key} {record.value / 1000:,.2f}s"
)


markus.configure([{"class": StdoutMetrics}], raise_errors=True)
Expand Down
4 changes: 3 additions & 1 deletion smoketests/bin/setup_download_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def get_subset_to_zip(is_try, sym_file_type_to_filename):

class StdoutMetrics(BackendBase):
def emit(self, record):
click.echo(f"metric: {record.stat_type} {record.key} {record.value/1000:,.2f}s")
click.echo(
f"metric: {record.stat_type} {record.key} {record.value / 1000:,.2f}s"
)


markus.configure([{"class": StdoutMetrics}], raise_errors=True)
Expand Down
4 changes: 3 additions & 1 deletion smoketests/bin/setup_upload_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@

class StdoutMetrics(BackendBase):
def emit(self, record):
click.echo(f"metric: {record.stat_type} {record.key} {record.value/1000:,.2f}s")
click.echo(
f"metric: {record.stat_type} {record.key} {record.value / 1000:,.2f}s"
)


markus.configure([{"class": StdoutMetrics}], raise_errors=True)
Expand Down
6 changes: 4 additions & 2 deletions smoketests/bin/upload_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

class StdoutMetrics(BackendBase):
def emit(self, record):
click.echo(f"metric: {record.stat_type} {record.key} {record.value/1000:,.2f}s")
click.echo(
f"metric: {record.stat_type} {record.key} {record.value / 1000:,.2f}s"
)


markus.configure([{"class": StdoutMetrics}], raise_errors=True)
Expand Down Expand Up @@ -79,7 +81,7 @@ def upload_symbols(ctx, expect_code, auth_token, base_url, symbolsfile):
for i in range(MAX_ATTEMPTS):
click.echo(
click.style(
f"Uploading {symbolsfile} to {api_url} ({i+1}/{MAX_ATTEMPTS}) ...",
f"Uploading {symbolsfile} to {api_url} ({i + 1}/{MAX_ATTEMPTS}) ...",
fg="yellow",
)
)
Expand Down
6 changes: 4 additions & 2 deletions smoketests/bin/upload_symbols_by_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

class StdoutMetrics(BackendBase):
def emit(self, record):
click.echo(f"metric: {record.stat_type} {record.key} {record.value/1000:,.2f}s")
click.echo(
f"metric: {record.stat_type} {record.key} {record.value / 1000:,.2f}s"
)


markus.configure([{"class": StdoutMetrics}], raise_errors=True)
Expand Down Expand Up @@ -68,7 +70,7 @@ def upload_symbols_by_download(ctx, base_url, auth_token, url, expect_code):
for i in range(MAX_ATTEMPTS):
click.echo(
click.style(
f"Uploading {url} to {api_url} ({i+1}/{MAX_ATTEMPTS}) ...",
f"Uploading {url} to {api_url} ({i + 1}/{MAX_ATTEMPTS}) ...",
fg="yellow",
)
)
Expand Down
2 changes: 1 addition & 1 deletion tecken/tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def test_upload_client_bad_request(client, db, uploaderuser, settings):
response = client.post(url, {"file.zip": f}, HTTP_AUTH_TOKEN=token.key)
assert response.status_code == 400
error_msg = (
"Invalid character in filename " "'xpcfoo.dbg/A7D6F1BB18CD4CB48/p%eter.sym'"
"Invalid character in filename 'xpcfoo.dbg/A7D6F1BB18CD4CB48/p%eter.sym'"
)
assert response.json()["error"] == error_msg

Expand Down
14 changes: 5 additions & 9 deletions tecken/tests/test_useradmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_is_blocked_in_auth0_command(requestsmock):
)

requestsmock.get(
"https://auth.example.com/api/v2/users?q=email%3A%22" "not%40example.com%22",
"https://auth.example.com/api/v2/users?q=email%3A%22not%40example.com%22",
json=[{"name": "Not"}],
status_code=200,
)
Expand All @@ -46,8 +46,7 @@ def test_is_blocked_in_auth0_command(requestsmock):
assert "NOT blocked" in output

requestsmock.get(
"https://auth.example.com/api/v2/users?q=email%3A%22"
"blocked%40example.com%22",
"https://auth.example.com/api/v2/users?q=email%3A%22blocked%40example.com%22",
json=[{"name": "Something", "blocked": True}],
status_code=200,
)
Expand All @@ -58,8 +57,7 @@ def test_is_blocked_in_auth0_command(requestsmock):
assert "BLOCKED!" in output

requestsmock.get(
"https://auth.example.com/api/v2/users?q=email%3A%22"
"notfound%40example.com%22",
"https://auth.example.com/api/v2/users?q=email%3A%22notfound%40example.com%22",
json=[],
status_code=200,
)
Expand Down Expand Up @@ -94,8 +92,7 @@ def test_not_blocked_in_auth0(client, requestsmock, settings):
)

requestsmock.get(
"https://auth.example.com/api/v2/users?q=email%3A%22"
"peterbe%40example.com%22",
"https://auth.example.com/api/v2/users?q=email%3A%22peterbe%40example.com%22",
json=[{"name": "Fine", "blocked": False}],
status_code=200,
)
Expand All @@ -121,8 +118,7 @@ def test_blocked_in_auth0(client, requestsmock, settings):
)

requestsmock.get(
"https://auth.example.com/api/v2/users?q=email%3A%22"
"peterbe%40example.com%22",
"https://auth.example.com/api/v2/users?q=email%3A%22peterbe%40example.com%22",
json=[{"name": "Fine", "blocked": True}],
status_code=200,
)
Expand Down
2 changes: 1 addition & 1 deletion tecken/upload/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _check_url_domain(url):
if not settings.ALLOW_UPLOAD_BY_ANY_DOMAIN:
if netloc_wo_port not in settings.ALLOW_UPLOAD_BY_DOWNLOAD_DOMAINS:
raise forms.ValidationError(
f"Not an allowed domain ({netloc_wo_port!r}) " "to download from."
f"Not an allowed domain ({netloc_wo_port!r}) to download from."
)

def clean(self):
Expand Down
6 changes: 1 addition & 5 deletions tecken/upload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,7 @@ def upload_archive(request, upload_workspace):
)
else:
return http.JsonResponse(
{
"error": (
"Must be multipart form data with at " "least one file"
)
},
{"error": ("Must be multipart form data with at least one file")},
status=400,
)
except zipfile.BadZipfile as exception:
Expand Down

0 comments on commit dd1f83e

Please sign in to comment.