Commit Graph

46 Commits

Author SHA1 Message Date
Divyansh Singh f0a5a36275
ci: Add ruff including print checks
Adds ruff replacing isort. Ruff comes with all flake8 rules and additional rules for print statements.

* .github/workflows/test.yml : Replace isort with ruff in comment

* .editorconfig : Update `yml` config to apply to all yaml files.

* Makefile (lint): Run ruff, remove isort

* .pre-commit-config.yaml : Remove isort, run ruff

* pyproject.toml : Configure ruff. Remove isort config.

* requirements.d/dev.txt : Add ruff, remove isort

* setup.cfg : Extend flake8 file ignore

* src/vorta/__main__.py : Add *noqa* for print statement.
2023-05-01 10:25:14 +02:00
i1sm3ky 7535f92ac8
PyQt6 Upgrade (#1685)
This puts Vorta on PyQt6 and starts a new main branch 0.9.

---------

Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
Co-authored-by: Manu <3916435+m3nu@users.noreply.github.com>
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-04-17 11:17:01 +01:00
Vamp 961e0b5057
Migrate from appdirs to platformdirs (#1617)
Fixes #1610. Replace deprecated `appdirs` with fork `platformdirs`. Use the new `*_path` api of set fork. This changes the type of the constants defined in `vorta.config` holding locations to `pathlib.Path`.

* setup.cfg : Replace dep `appdirs` with `platformdirs`.

* src/vorta/config.py : Migrate. Simplify code for ensuring that the directories exist.

* src/vorta/log.py
* src/vorta/autostart.py
* src/vorta/application.py
* src/vorta/__main__.py
2023-03-10 16:00:39 +00:00
yfprojects 055338af2c
Link to report form chooser for critical errors. (#1451)
Currently the link will open an empty issue. Now the user can choose one of the templates.

* src/vorta/__main__.py : Replace link.
2022-10-31 17:50:32 +01:00
Manu b6a24debb7 Apply automatic formatting 2022-08-15 15:23:55 +02:00
real-yfprojects 7003d69577
Update `diffresult.ui` with new features and prettyfy it.
* src/vorta/assets/UI/diffresult.ui : Replace `okButton` with `QDialogButtonBox`
	that has a `close` button.

* src/vorta/views/diff_result.py : Connect `buttonBox` instead of `okButton` to Dialog.

* src/vorta/assets/UI/diffresult.ui : Add title to `DiffResult` dialog and simplify file name display.

* src/vorta/assets/UI/diffresult.ui : Add comboBox to change display mode of tree view.

* src/vorta/views/diff_result.py : Connect comboBox to `DiffTree`.

* src/vorta/application.py : Remove `eventFilter` setup for palette changes.

* src/vorta/tray_menu.py : Connect directly to `app.paletteChanged`.
* src/vorta/views/archive_tab.py
* src/vorta/views/repo_tab.py
* src/vorta/views/schedule_tab.py
* src/vorta/views/source_tab.py

* src/vorta/assets/UI/diffresult.ui : Add buttons to keep folders on top when sorting and
	to expand and collapse all items.

* src/vorta/views/diff_result.py : Connect the added buttons.

* src/vorta/assets/icons/angle-up-solid.svg : Add icon for `bCollapseAll`.

* src/vorta/views/diff_result.py : Add context menu to `treeView` that allows expanding
	and copying of an item.

* src/vorta/views/diff_result.py : Add copy shortcut to `treeView`.
2022-07-25 16:13:28 +02:00
Manu 4c3e97a76c
Refactor: Split up vorta/models.py (#1112) 2021-11-17 13:14:11 +04:00
Manu 0c77fdde97
Address DB Locking issues (#1109) 2021-11-16 10:32:40 +04:00
samuel-w bd3c479d1e
Add untranslated strings. By @samuel-w (#902) 2021-03-01 16:03:39 +08:00
samuel-w 3112a111f7
Cleanup database at exit, use write-ahead logging. By @samuel-w (#696) 2020-12-16 11:27:49 +08:00
samuel-w d6f368ae50
Improve exception handling. By @samuel-w (#628) 2020-12-16 11:03:24 +08:00
samuel-w a4b49e7e0b
Create backups from command line using existing profiles. By @samuel-w (#556) 2020-12-16 10:39:54 +08:00
Samuel 0b6961213f
Refactoring: remove last exec_, add tests, retain archive deletion message. By @samuel-w (#722) 2020-11-20 08:46:09 +08:00
Manuel Riel d0c138a0c2
Run in foreground by default (#380)
* Run in foreground by default
* Open main window on startup by default.
* Remove redundant comment
* PEP8 fixes
2020-01-03 22:23:06 +08:00
Julian Hofer dd9b97b1b8 Rename background-option to daemonize 2019-07-20 18:47:24 +02:00
Hofer-Julian 329f096fb4
Fix "Force-Fusion-Style" (#320)
Prevents getting "Segmentation Fault" when using foreground option"
2019-06-29 09:10:55 +02:00
Hofer-Julian deb1e32ea8 Force fusion style on Linux (#307)
Fixes some layout issues that occur with other Qt designs.
2019-06-18 10:31:05 +08:00
Hofer-Julian 23a92e3adb
Implement --version. Fixes #260 (#295) 2019-05-30 20:35:57 +02:00
Hofer-Julian ab04d84fc1 Implement QtSingleApplication by @Hofer-Julian
- Use C-style single app implementation with messaging across instances of the same app.
- Open main window when application already runs.
2019-04-07 15:36:46 +08:00
Manuel Riel 7487c40ec6
Catch Keyboard interrupt when running in foreground mode. Fixes #204 2019-02-26 20:00:06 +08:00
Manuel Riel f2d9029984
Add light icons and dark stylesheet. Fixes #151 (#155) 2019-01-24 10:05:15 +08:00
TW badb966f4e do not fork into background with any fat binary (#124)
this avoids that someone e.g. porting to freebsd (which is also
supported by PyInstaller) will stumble over the platform check.
2019-01-15 23:21:52 +08:00
Manuel Riel 42191725b5
Smaller issues for v0.6.5 (#123)
* Clarify tray icon behavior in INSTALL.md. Fixes #111
* Rename default profile to just "Default". Fixes #116
* Remove Sentry bug reporting. Add link to Github instead. Fixes #117
* Log to terminal only when running in foreground.
2019-01-15 23:20:24 +08:00
TW d2f618babf pyinstaller / vorta.spec: make platform independent (#122)
* pyinstaller / vorta.spec: make platform independent

- cwd must be the repo dir, __FILE__ is not available here
- the borg binary for the platform must be in bin/borg (no matter
  whether we build for Linux or macOS or ...)
- moved some settings to top of the file
- whitespace clean up

* fat binary: must not fork on linux either

also: refactor slightly
2019-01-13 10:03:00 +08:00
Manuel Riel 5cbdaaa15c
v0.6.4 - Custom pre/post backup commands (#104)
* Add pre/post-backup command setting. Fixes #109
* Bug fixes for #111 and #106
2019-01-06 08:22:11 +08:00
Manuel Riel b64b446add
V0.6.2 – Restructure README (#97)
* Dont open main window on startup unless --foreground is given. Fixes #91
* Clean up README. #93
* Make sentry reporting a setting.
2018-12-18 19:23:34 +08:00
Manuel Riel 4f6137207b
v0.6.1 Release (#86)
* Fix unicode issue with Darwin Keychain. Add new test for it. Fixes #89
* Don't add invalid repo. Improve error message when adding repo fails. Fixes #87
* Add setting for archive name and prune prefix. #88
* UI tweaks.
2018-12-14 16:03:26 +08:00
Manuel Riel 30c6549f0f
v0.5.2 Bugfixes and new Misc Settings Tab (#71)
* Fix uneven vspace. Fixes #67

* Add Python 3.7 to Travis. Use tox to test multiple Python versions. Fixes #72

* Add command line option to avoid forking and open main window while debugging. Fixes #73

* Use slug of profile name as archive prefix. Fixes #46

* Add settings tab. Add light system tray icon option. Fixes #56 and #74

* Incorporate review by @ThomasWaldmann
2018-12-04 10:58:12 +08:00
Manu c30bdd9cf4 Redirect Borg logging output to standard location. Fixes #35 2018-11-22 11:06:58 +08:00
Manu 8659336f5d Fix flake8 warnings. 2018-11-22 10:18:03 +08:00
Manu ef1966c27a Rename SnapshotModel to ArchiveModel. Adds to #39 2018-11-22 09:35:59 +08:00
Manu a72f84f17d Add client-side scrubbing of passwords. Fixes #34 2018-11-22 00:36:35 +08:00
Manu 55ff2b0352 Ensure only one app instance is running. Fixes #27 2018-11-21 22:17:48 +08:00
Manu 7fe2ab2f01 Package macOS app as DMG. Add Sparkle Framework. 2018-11-21 16:17:27 +08:00
Manu 33f7919bb5 Add notifications. Fixes for #2. 2018-11-06 13:13:49 +08:00
Manu 7220f6bea7 Add current version to Sentry log. 2018-11-03 00:33:37 +08:00
Manu 7eefe354ae Fixes to packaging 2018-11-02 23:46:14 +08:00
Manu 3a5eafd061 Replace peewee_migrate with native solution. Fix window activation. 2018-11-02 00:53:41 +08:00
Manu 8bf2c54c38 Add support for database migrations. 2018-11-01 20:02:29 +08:00
Manu 6e4fcb9583 Improve packaging 2018-11-01 13:11:37 +08:00
Manu c896388ae8 Subclass QApplication. 2018-10-31 19:14:12 +08:00
Manu 7549e73189 Start adding tests. Work on scheduler-tab. (both WIP) 2018-10-31 01:46:37 +08:00
Manu 4f0de320c4 Make BorgThread more independent. Fix issue when calling from apscheduler. 2018-10-30 01:25:28 +08:00
Manu b9d4d57f33 Add EventLog 2018-10-29 21:23:42 +08:00
Manu ff37a8e6e0 Improve finding assets, make cancelling more reliable. 2018-10-29 13:49:25 +08:00
Manu df04edb222 Change to src-based layout. Start work on scheduler. 2018-10-29 13:12:45 +08:00
Renamed from vorta/__main__.py (Browse further)