Compare commits

..

2 commits
0.7.3 ... main

Author SHA1 Message Date
886b809bd3
Add pre-commit, fix trailing whitespace
All checks were successful
CI / test (push) Successful in 8m57s
Lint / test (push) Successful in 37s
Trivy / test (push) Successful in 23s
2025-12-18 13:48:42 +11:00
e6010969cb
Don't block on pyproject modification if the version has already been bumped
All checks were successful
CI / test (push) Successful in 8m44s
Lint / test (push) Successful in 38s
Trivy / test (push) Successful in 19s
2025-12-16 15:28:24 +11:00
6 changed files with 34 additions and 5 deletions

26
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,26 @@
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
hooks:
- id: flake8
args: ["--select=F"]
types: [python]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/bandit
rev: 1.9.2
hooks:
- id: bandit
files: ^bouquin/
args: ["-s", "B110"]

View file

@ -74,7 +74,7 @@ Fonts, only if the fonts are renamed to names not containing either
the words "Tavmjong Bah" or the word "Arev". the words "Tavmjong Bah" or the word "Arev".
This License becomes null and void to the extent applicable to Fonts This License becomes null and void to the extent applicable to Fonts
or Font Software that has been modified and is distributed under the or Font Software that has been modified and is distributed under the
"Tavmjong Bah Arev" names. "Tavmjong Bah Arev" names.
The Font Software may be sold as part of a larger software package but The Font Software may be sold as part of a larger software package but

View file

@ -18,7 +18,7 @@ with others.
The OFL allows the licensed fonts to be used, studied, modified and The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives, names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The however, cannot be released under any other type of license. The

View file

@ -172,7 +172,7 @@
"stats_metric_revisions": "Revisions", "stats_metric_revisions": "Revisions",
"stats_metric_documents": "Documents", "stats_metric_documents": "Documents",
"stats_total_documents": "Total documents", "stats_total_documents": "Total documents",
"stats_date_most_documents": "Date with most documents", "stats_date_most_documents": "Date with most documents",
"stats_no_data": "No statistics available yet.", "stats_no_data": "No statistics available yet.",
"stats_time_total_hours": "Total hours logged", "stats_time_total_hours": "Total hours logged",
"stats_time_day_most_hours": "Day with most hours logged", "stats_time_day_most_hours": "Day with most hours logged",
@ -377,7 +377,7 @@
"documents_missing_file": "The file does not exist:\n{path}", "documents_missing_file": "The file does not exist:\n{path}",
"documents_confirm_delete": "Remove this document from the project?\n(The file on disk will not be deleted.)", "documents_confirm_delete": "Remove this document from the project?\n(The file on disk will not be deleted.)",
"documents_search_label": "Search", "documents_search_label": "Search",
"documents_search_placeholder": "Type to search documents (all projects)", "documents_search_placeholder": "Type to search documents (all projects)",
"todays_documents": "Documents from this day", "todays_documents": "Documents from this day",
"todays_documents_none": "No documents yet.", "todays_documents_none": "No documents yet.",
"manage_invoices": "Manage Invoices", "manage_invoices": "Manage Invoices",

View file

@ -21,12 +21,15 @@ if [[ -z "${VERSION}" ]]; then
exit 1 exit 1
fi fi
set +e
sed -i s/version.*$/version\ =\ \"${VERSION}\"/g pyproject.toml sed -i s/version.*$/version\ =\ \"${VERSION}\"/g pyproject.toml
git add pyproject.toml git add pyproject.toml
git commit -m "Bump to ${VERSION}" git commit -m "Bump to ${VERSION}"
git push origin main git push origin main
set -e
# Clean caches etc # Clean caches etc
filedust -y . filedust -y .

View file

@ -1574,7 +1574,7 @@ def test_markdown_highlighter_special_characters(qtbot, app):
highlighter = MarkdownHighlighter(doc, theme_manager) highlighter = MarkdownHighlighter(doc, theme_manager)
text = """ text = """
Special chars: < > & " ' Special chars: < > & " '
Escaped: \\* \\_ \\` Escaped: \\* \\_ \\`
Unicode: 你好 café résumé Unicode: 你好 café résumé
""" """