Skip to content

Commit

Permalink
wip: check new linter feature
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Jan 31, 2025
1 parent ee29707 commit ff71d69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2020-2024 CERN.
# Copyright (C) 2020 Northwestern University.
# Copyright (C) 2025 Graz University of Technology.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -27,7 +28,7 @@ on:

jobs:
Python:
uses: inveniosoftware/workflows/.github/workflows/tests-python.yml@master
uses: utnapischtim/workflows/.github/workflows/tests-python.yml@linter

JS:
uses: inveniosoftware/workflows/.github/workflows/tests-js.yml@master
Expand Down
11 changes: 9 additions & 2 deletions invenio_rdm_records/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2019-2024 CERN.
# Copyright (C) 2019-2021 Northwestern University.
# Copyright (C) 2022 Universität Hamburg.
# Copyright (C) 2023-2024 Graz University of Technology.
# Copyright (C) 2023-2025 Graz University of Technology.
# Copyright (C) 2023 TU Wien.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@

from warnings import warn

from flask import Blueprint
from flask import Blueprint, request
from flask_iiif import IIIF
from flask_principal import identity_loaded
from invenio_records_resources.resources.files import FileResource
Expand Down Expand Up @@ -214,6 +214,13 @@ def init_services(self, app):

def init_resource(self, app):
"""Initialize resources."""

@app.before_request
def before_request():
if "files" in request.path:
print("before_request in files")

Check failure on line 221 in invenio_rdm_records/ext.py

View workflow job for this annotation

GitHub Actions / Python / Tests (3.9, postgresql14, opensearch2)

Ruff (T201)

invenio_rdm_records/ext.py:221:17: T201 `print` found

Check failure on line 221 in invenio_rdm_records/ext.py

View workflow job for this annotation

GitHub Actions / Python / Tests (3.12, postgresql14, opensearch2)

Ruff (T201)

invenio_rdm_records/ext.py:221:17: T201 `print` found
request.max_content_length = 10 ** 10

self.records_resource = RDMRecordResource(
service=self.records_service,
config=RDMRecordResourceConfig.build(app),
Expand Down

0 comments on commit ff71d69

Please sign in to comment.