diff --git a/ihatemoney/manage.py b/ihatemoney/manage.py index d94a1dd4b..67b38b727 100755 --- a/ihatemoney/manage.py +++ b/ihatemoney/manage.py @@ -1,10 +1,10 @@ #!/usr/bin/env python +import datetime import getpass import os import random import sys -import datetime import click from flask.cli import FlaskGroup diff --git a/ihatemoney/monkeypath_continuum.py b/ihatemoney/monkeypath_continuum.py index a52c92fad..18e5cb54f 100644 --- a/ihatemoney/monkeypath_continuum.py +++ b/ihatemoney/monkeypath_continuum.py @@ -82,12 +82,14 @@ def __repr__(self): ) return "" % ", ".join( ( - "%s=%r" % (field, value) - if not isinstance(value, six.integer_types) - # We want the following line to ensure that longs get - # shown without the ugly L suffix on python 2.x - # versions - else "%s=%d" % (field, value) + ( + "%s=%r" % (field, value) + if not isinstance(value, six.integer_types) + # We want the following line to ensure that longs get + # shown without the ugly L suffix on python 2.x + # versions + else "%s=%d" % (field, value) + ) for field, value in field_values.items() ) ) diff --git a/ihatemoney/tests/budget_test.py b/ihatemoney/tests/budget_test.py index 732535bc9..9ed01eb80 100644 --- a/ihatemoney/tests/budget_test.py +++ b/ihatemoney/tests/budget_test.py @@ -1,5 +1,5 @@ from collections import defaultdict -from datetime import datetime, timedelta, date +from datetime import date, datetime, timedelta import re from urllib.parse import unquote, urlparse, urlunparse @@ -1032,7 +1032,9 @@ def test_dashboard(self): assert """ Project - Number of participants""" in resp.data.decode("utf-8") + Number of participants""" in resp.data.decode( + "utf-8" + ) def test_dashboard_project_deletion(self): self.post_project("raclette") diff --git a/pyproject.toml b/pyproject.toml index afe89e894..6b0052b5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "ihatemoney" version = "6.2.0.dev0" -requires-python = ">=3.9" +requires-python = ">=3.9, <3.14" description = "A simple shared budget manager web application." readme = "README.md" license = {file = "LICENSE"} @@ -20,6 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ] diff --git a/settings.cfg b/settings.cfg new file mode 100644 index 000000000..1bc03cfd6 --- /dev/null +++ b/settings.cfg @@ -0,0 +1,3 @@ +DEBUG = True +SQLACHEMY_ECHO = DEBUG +export IHATEMONEY_SETTINGS_FILE_PATH="$(pwd)/settings.cfg" diff --git a/uv.lock b/uv.lock index b23e6d6a6..e42c35109 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -requires-python = ">=3.9" +requires-python = ">=3.9, <3.14" [[package]] name = "alabaster"