Skip to content

Commit

Permalink
Merge pull request #32 from fedora-infra/renovate/all-minor-patch
Browse files Browse the repository at this point in the history
Update all non-major dependencies
  • Loading branch information
gridhead authored Jan 7, 2025
2 parents bf9695a + de63532 commit 4775650
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ repos:

# Formatting
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.10.0
hooks:
- id: black

# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.4.10
rev: v0.8.5
hooks:
- id: ruff
14 changes: 7 additions & 7 deletions kerneltest/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def upload_results(test_result, username, authenticated=False):

messaging.publish(msg)

filename = "%s.log" % test.testid
filename = f"{test.testid}.log"
test_result.seek(0)
test_result.save(os.path.join(logdir, filename))

Expand Down Expand Up @@ -267,9 +267,9 @@ def allowed_file(input_file):
"""
# Mimetype allowed for file to upload
allowed_types = APP.config.get("ALLOWED_MIMETYPES", [])
APP.logger.info("input submitted with mimetype: %s" % input_file.mimetype)
APP.logger.info(f"input submitted with mimetype: {input_file.mimetype}")
if input_file.mimetype not in allowed_types:
raise InvalidInputException("Invalid input submitted: %s" % input_file.mimetype)
raise InvalidInputException(f"Invalid input submitted: {input_file.mimetype}")


@APP.context_processor
Expand Down Expand Up @@ -349,7 +349,7 @@ def kernel(kernel):
def logs(logid):
"""Display logs of a specific test run."""
logdir = APP.config.get("LOG_DIR", "logs")
return flask.send_from_directory(logdir, "%s.log" % logid)
return flask.send_from_directory(logdir, f"{logid}.log")


@APP.route("/stats")
Expand Down Expand Up @@ -550,7 +550,7 @@ def admin_new_release():
)
messaging.publish(msg)

flask.flash('Release "%s" added' % release.releasenum)
flask.flash(f'Release "{release.releasenum}" added')
return flask.redirect(flask.url_for("index"))
return flask.render_template("release_new.html", form=form, submit_text="Create release")

Expand All @@ -560,7 +560,7 @@ def admin_new_release():
def admin_edit_release(relnum):
release = dbtools.get_release(SESSION, relnum)
if not release:
flask.flash("No release %s found" % relnum)
flask.flash(f"No release {relnum} found")
return flask.redirect(flask.url_for("index"))

form = ReleaseForm(obj=release)
Expand All @@ -576,7 +576,7 @@ def admin_edit_release(relnum):
)
messaging.publish(msg)

flask.flash('Release "%s" updated' % release.releasenum)
flask.flash(f'Release "{release.releasenum}" updated')
return flask.redirect(flask.url_for("index"))
return flask.render_template(
"release_new.html", form=form, release=release, submit_text="Edit release"
Expand Down
39 changes: 20 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ gunicorn = "^21.2.0 || ^23.0.0"
kerneltest-messages = "^1.0.0"
backoff = "^2.2.1"
responses = "^0.25.0"
ruff = "^0.3.4 || ^0.4.0"
ruff = "^0.3.4 || ^0.4.0 || ^0.8.0"
fedora-messaging = "^3.5.0"

[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
try:
import requests

req = requests.get("%s/new" % FAITOUT_URL)
req = requests.get(f"{FAITOUT_URL}/new")
if req.status_code == 200:
DB_PATH = req.text
print("Using faitout at: %s" % DB_PATH)
print(f"Using faitout at: {DB_PATH}")
except Exception:
pass

Expand Down

0 comments on commit 4775650

Please sign in to comment.