Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update black requirement from ^23.1.0 to ^24.1.1 #127

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Tox

on:
Expand All @@ -18,9 +19,9 @@ jobs:
os:
- Ubuntu
py:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v3
- name: Setup python for test ${{ matrix.py }}
Expand Down
1 change: 1 addition & 0 deletions jasmin_services/api/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""URLs for the jasmin_services api."""

import rest_framework.routers as rf_routers

from . import views as apiviews
Expand Down
1 change: 1 addition & 0 deletions jasmin_services/api/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""APIViews for the jasmin_services API."""

import datetime as dt

import django.contrib.auth
Expand Down
1 change: 1 addition & 0 deletions jasmin_services/models/behaviours/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module defining specific category implementations."""

import logging
import sys

Expand Down
1 change: 1 addition & 0 deletions jasmin_services/models/behaviours/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base behaiviour from which others inherit."""

__author__ = "Matt Pryor"
__copyright__ = "Copyright 2015 UK Science and Technology Facilities Council"

Expand Down
1 change: 1 addition & 0 deletions jasmin_services/models/behaviours/ldap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Behavious to apply changes to LDAP."""

import importlib

import django.core.exceptions
Expand Down
1 change: 1 addition & 0 deletions jasmin_services/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the api endpoints."""

import datetime as dt
from zoneinfo import ZoneInfo

Expand Down
1 change: 1 addition & 0 deletions jasmin_services/views/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common functions for jasmin_services views."""

import functools
import logging

Expand Down
8 changes: 5 additions & 3 deletions jasmin_services/views/service_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ def service_list(request, category):
for service in page
],
"page": page,
"preserved_filters": "query={}".format(urllib.parse.quote(request.GET["query"]))
if "query" in request.GET
else "",
"preserved_filters": (
"query={}".format(urllib.parse.quote(request.GET["query"]))
if "query" in request.GET
else ""
),
},
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ keycloak = ["python-keycloak"]
[tool.poetry.group.dev.dependencies]
tox = "^4.4.12"
pytest = "^8.0.0"
black = "^23.1.0"
black = "^24.1.1"
isort = "^5.10.1"
mypy = "^1.2.0"
types-python-dateutil = "^2.8.19.12"
Expand Down
1 change: 1 addition & 0 deletions tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""URLs for tests of jasmin_services."""

import drf_spectacular.views
import rest_framework.routers as rf_routers
from django.urls import include, path
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
isolated_build = true
envlist = py39,py310,py311
envlist = py310,py311,py312

[gh]
python =
3.9 = py39
3.10 = py310
3.11 = py311
3.12 = py312

[testenv]
skip_install = true
Expand Down
Loading