Skip to content

Commit

Permalink
Update pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LoanR committed Feb 5, 2025
1 parent e0a4c7b commit 4392840
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.4'
rev: 'v0.9.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: fix-byte-order-marker
- id: trailing-whitespace
Expand All @@ -16,7 +16,7 @@ repos:
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$"
- id: check-toml
- repo: https://github.com/pycqa/isort
rev: "5.13.2"
rev: "6.0.0"
hooks:
- id: isort
name: isort (python)
Expand Down
2 changes: 1 addition & 1 deletion web/b3desk/endpoints/meeting_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def add_meeting_files(meeting: Meeting, owner: User):
def download_meeting_files(meeting: Meeting, owner: User, file_id=None):
TMP_DOWNLOAD_DIR = current_app.config["TMP_DOWNLOAD_DIR"]
Path(TMP_DOWNLOAD_DIR).mkdir(parents=True, exist_ok=True)
tmp_name = f'{current_app.config["TMP_DOWNLOAD_DIR"]}{secrets.token_urlsafe(32)}'
tmp_name = f"{current_app.config['TMP_DOWNLOAD_DIR']}{secrets.token_urlsafe(32)}"
file_to_send = None

for current_file in meeting.files:
Expand Down
2 changes: 1 addition & 1 deletion web/b3desk/models/bbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def bbb_request(self, action, method="GET", **kwargs):
bigbluebutton_secret = current_app.config["BIGBLUEBUTTON_SECRET"]
secret = "{}{}".format(
prepped.url.replace("?", "").replace(
f'{current_app.config["BIGBLUEBUTTON_ENDPOINT"]}/', ""
f"{current_app.config['BIGBLUEBUTTON_ENDPOINT']}/", ""
),
bigbluebutton_secret,
)
Expand Down
2 changes: 1 addition & 1 deletion web/b3desk/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def make_nextcloud_credentials_request(url, payload, headers):
data = response.json()
if current_app.config.get("FORCE_HTTPS_ON_EXTERNAL_URLS"):
valid_nclocator = (
f'//{data["nclocator"]}'
f"//{data['nclocator']}"
if not (
data["nclocator"].startswith("//")
or data["nclocator"].startswith("http://")
Expand Down
10 changes: 5 additions & 5 deletions web/tests/meeting/test_meeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_create_no_file(client_app, meeting, mocker, bbb_response):
assert bbb_response.called
bbb_url = bbb_response.call_args.args[0].url
assert bbb_url.startswith(
f'{client_app.app.config["BIGBLUEBUTTON_ENDPOINT"]}/create'
f"{client_app.app.config['BIGBLUEBUTTON_ENDPOINT']}/create"
)
bbb_params = {
key: value[0] for key, value in parse_qs(urlparse(bbb_url).query).items()
Expand Down Expand Up @@ -375,7 +375,7 @@ def test_create_with_only_a_default_file(
assert bbb_response.called
bbb_url = bbb_response.call_args.args[0].url
assert bbb_url.startswith(
f'{client_app.app.config["BIGBLUEBUTTON_ENDPOINT"]}/create'
f"{client_app.app.config['BIGBLUEBUTTON_ENDPOINT']}/create"
)
bbb_params = {
key: value[0] for key, value in parse_qs(urlparse(bbb_url).query).items()
Expand Down Expand Up @@ -468,7 +468,7 @@ def test_create_with_files(
assert bbb_response.called
bbb_url = bbb_response.call_args.args[0].url
assert bbb_url.startswith(
f'{client_app.app.config["BIGBLUEBUTTON_ENDPOINT"]}/create'
f"{client_app.app.config['BIGBLUEBUTTON_ENDPOINT']}/create"
)
bbb_params = {
key: value[0] for key, value in parse_qs(urlparse(bbb_url).query).items()
Expand Down Expand Up @@ -507,7 +507,7 @@ def test_create_with_files(

assert mocked_background_upload.called
assert mocked_background_upload.call_args.args[0].startswith(
f'{client_app.app.config["BIGBLUEBUTTON_ENDPOINT"]}/insertDocument'
f"{client_app.app.config['BIGBLUEBUTTON_ENDPOINT']}/insertDocument"
)

secret_key = client_app.app.config["SECRET_KEY"]
Expand Down Expand Up @@ -550,7 +550,7 @@ def test_create_quick_meeting(client_app, monkeypatch, user, mocker, bbb_respons
assert bbb_response.called
bbb_url = bbb_response.call_args.args[0].url
assert bbb_url.startswith(
f'{client_app.app.config["BIGBLUEBUTTON_ENDPOINT"]}/create'
f"{client_app.app.config['BIGBLUEBUTTON_ENDPOINT']}/create"
)
bbb_params = {
key: value[0] for key, value in parse_qs(urlparse(bbb_url).query).items()
Expand Down

0 comments on commit 4392840

Please sign in to comment.