Skip to content

Commit

Permalink
feat: 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EnhancedJax committed Feb 1, 2025
1 parent 51718d5 commit a029568
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Publish"

on:
push:
branches:
- main
release:
types: [published]
branches: [master]

jobs:
run:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.5

- Removed minimum amount validation for records for flexibility.

## 0.3.4

- Added ability to click on accounts in accounts-mode module
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Some notable features include:
<details open>
<summary><b>Recommended: By UV</b></summary>

Bagels can be installed via uv on MacOS, Linux, and Windows.

`uv` is a single Rust binary that you can use to install Python apps. It's significantly faster than alternative tools, and will get you up and running with Bagels in seconds.

You don't even need to worry about installing Python yourself - uv will manage everything for you.

#### Unix / MacOS:

```bash
Expand All @@ -50,6 +56,10 @@ source $HOME/.local/bin/env # or follow instructions
uv tool install --python 3.13 bagels
```

`uv` can also be installed via Homebrew, Cargo, Winget, pipx, and more. See the [installation guide](https://docs.astral.sh/uv/getting-started/installation/) for more information.

Now you can run Posting via the command line:

#### Windows:

```bash
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "Bagels"
version = "0.3.4"
version = "0.3.5"
authors = [
{ name = "Jax", email = "[email protected]" }
]
Expand Down
7 changes: 2 additions & 5 deletions src/bagels/forms/record_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

from rich.text import Text

from bagels.config import CONFIG
from bagels.forms.form import Form, FormField, Option, Options
from bagels.managers.accounts import get_all_accounts_with_balance
from bagels.managers.categories import get_all_categories_by_freq
from bagels.managers.persons import get_all_persons
from bagels.managers.record_templates import get_all_templates
from bagels.managers.records import get_record_by_id, get_record_total_split_amount
from bagels.forms.form import Form, FormField, Option, Options
from bagels.managers.records import get_record_by_id


class RecordForm:
Expand Down Expand Up @@ -46,7 +45,6 @@ def __new__(cls):
title="Amount",
key="amount",
type="number",
min=0,
is_required=True,
),
FormField(
Expand Down Expand Up @@ -89,7 +87,6 @@ def __new__(cls):
title="Amount",
key="amount",
type="number",
min=0,
is_required=True,
placeholder="0.00",
),
Expand Down
4 changes: 2 additions & 2 deletions src/bagels/forms/recordtemplate_forms.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import copy

from rich.text import Text

from bagels.forms.form import Form, FormField, Option, Options
from bagels.managers.accounts import get_all_accounts_with_balance
from bagels.managers.categories import get_all_categories_by_freq
from bagels.managers.record_templates import get_template_by_id
from bagels.forms.form import Form, FormField, Option, Options


class RecordTemplateForm:
Expand Down Expand Up @@ -39,7 +40,6 @@ def __new__(cls):
title="Amount",
key="amount",
type="number",
min=0,
is_required=True,
),
FormField(
Expand Down
5 changes: 2 additions & 3 deletions src/bagels/modals/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
)

from bagels.components.fields import Fields
from bagels.forms.form import Form, FormField
from bagels.managers.accounts import get_all_accounts_with_balance
from bagels.utils.validation import validateForm
from bagels.modals.base_widget import ModalContainer
from bagels.forms.form import Form, FormField
from bagels.utils.validation import validateForm


class Accounts(ListView):
Expand Down Expand Up @@ -74,7 +74,6 @@ def __init__(
key="amount",
type="number",
placeholder="0.00",
min=0,
is_required=True,
default_value=str(record.amount) if record else "",
),
Expand Down
2 changes: 1 addition & 1 deletion src/bagels/utils/validation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from typing import Tuple, Dict, Any
from typing import Any, Dict, Tuple

from textual.widget import Widget

Expand Down

0 comments on commit a029568

Please sign in to comment.