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

Fix/maintainability_ #1364

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
2 changes: 1 addition & 1 deletion ihatemoney/manage.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 8 additions & 6 deletions ihatemoney/monkeypath_continuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ def __repr__(self):
)
return "<Transaction %s>" % ", ".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()
)
)
Expand Down
6 changes: 4 additions & 2 deletions ihatemoney/tests/budget_test.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -1032,7 +1032,9 @@ def test_dashboard(self):
assert """<thead>
<tr>
<th>Project</th>
<th>Number of participants</th>""" in resp.data.decode("utf-8")
<th>Number of participants</th>""" in resp.data.decode(
"utf-8"
)

def test_dashboard_project_deletion(self):
self.post_project("raclette")
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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",
]
Expand Down
3 changes: 3 additions & 0 deletions settings.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DEBUG = True
SQLACHEMY_ECHO = DEBUG
export IHATEMONEY_SETTINGS_FILE_PATH="$(pwd)/settings.cfg"
2 changes: 1 addition & 1 deletion uv.lock

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