Commit graph

1461 commits

Author SHA1 Message Date
Jonathan Wren
d863d217a0 clean up linting issue 2022-03-12 14:59:11 -08:00
Jonathan Wren
0d823155d0 clean up old code 2022-03-12 14:57:21 -08:00
Jonathan Wren
c7c6ecfdf9 clean up old code 2022-03-12 14:54:30 -08:00
Jonathan Wren
4a4a874f9f reformat with black 2022-03-12 14:53:04 -08:00
Jonathan Wren
548ac582d9 replace sys.exit call with new exception handling 2022-03-12 14:47:28 -08:00
Jonathan Wren
c5fc211ae9 replace sys.exit call with new exception handling 2022-03-12 14:42:04 -08:00
Jonathan Wren
6a4915c393 replace sys.exit call with new exception handling 2022-03-12 14:32:20 -08:00
Jonathan Wren
66ce8debe5 fix merge errors 2022-03-12 14:25:58 -08:00
Jonathan Wren
2051f04839 merge in develop 2022-03-12 13:54:11 -08:00
Jrnl Bot
7a42800168 Update changelog [ci skip] 2022-03-12 21:26:01 +00:00
Micah Jerome Ellison
d3de5b778b
Replace PyYAML with ruamel.yaml (#1416)
* Remove Python 3.7 and 3.8 from github actions workflows

* Update lockfile after running poetry update a couple times

* Update poetry lock

* Remove Python 3.7 and 3.8 from pyproject.toml and run poetry lock

* Switch from pyyaml to ruamel.yaml

* Remove duplicate editor key in config

* Use ruamel.yaml instead of pyyaml in legacy template.py

* Prevent ruamel from collapsing config YAML

* Run make format
2022-03-12 13:24:31 -08:00
Jonathan Wren
e46b5a171f
Fix tests for daylight savings (#1423)
* fix test failing because tomorrow is daylight savings

* add test for newly discovered daylight savings issue (and skip for now)

* whitespace change

* update title of test

* fix copypasta
2022-03-12 13:14:26 -08:00
Jonathan Wren
5273f8769d
Reformat messages and add new centralized exception handling (#1417)
* Update and modularize exception handling

cc #1024 #1141

- Stack traces are no longer shown to users unless the --debug flag is
  being used
- Errors, warnings, and other messages contain color as needed
- Converted error messages to Enum
- Adds print_msg function to centralize output (this should replace all
  other output in other modules)

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2022-03-12 12:43:26 -08:00
Jrnl Bot
d6ff04cf17 Update changelog [ci skip] 2022-02-26 20:05:39 +00:00
dependabot[bot]
b4e7246526
Bump yq from 2.13.0 to 2.14.0 (#1418)
Bumps [yq](https://github.com/kislyuk/yq) from 2.13.0 to 2.14.0.
- [Release notes](https://github.com/kislyuk/yq/releases)
- [Changelog](https://github.com/kislyuk/yq/blob/develop/Changes.rst)
- [Commits](https://github.com/kislyuk/yq/compare/v2.13.0...v2.14.0)

---
updated-dependencies:
- dependency-name: yq
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-26 12:03:57 -08:00
Jonathan Wren
aa9343a75c Move error for too many wrong passwords into new handling 2022-02-19 18:08:11 -08:00
Jonathan Wren
101963bba6 get rid of old exception handling for encrypted journal 2022-02-19 18:01:02 -08:00
Jonathan Wren
0b160aa845 move exception for no alt config to new handling 2022-02-19 17:56:48 -08:00
Jonathan Wren
782adef681 move exception for no editor configured into new handling 2022-02-19 17:47:31 -08:00
Jonathan Wren
e181302ca4 add new exception handling to 'nothing saved to file' errors 2022-02-19 17:31:59 -08:00
Jonathan Wren
35cdd7bd59 get rid of old exception 2022-02-19 17:00:52 -08:00
Jonathan Wren
94feae735e add new 'NothingToDelete' error to replace old behavior 2022-02-19 16:57:56 -08:00
Jonathan Wren
e05257fe47 add handling for exceptions that happen earlier in the flow 2022-02-19 16:49:07 -08:00
Jonathan Wren
7be9f2037d add line breaks to keyboard interrupt so it looks more like other exceptions 2022-02-19 16:22:42 -08:00
Jonathan Wren
b907064639 move some exceptions and errors to the new exception handling 2022-02-19 16:22:22 -08:00
Jonathan Wren
2d8ffd1174 udpate error to use new exception handling 2022-02-19 14:39:34 -08:00
Jonathan Wren
66bdd06c51 clean up error for manually stopping the inline editor 2022-02-19 14:15:55 -08:00
Jonathan Wren
6c977929d4 whitespace change 2022-02-19 14:12:41 -08:00
Jonathan Wren
ce84a7ef6e update test to match new message 2022-02-19 14:12:28 -08:00
Jonathan Wren
c41f4fd2a1 fix behavior that was confusing pytest 2022-02-19 14:04:31 -08:00
Nelson
f5e6705e76 Tidy up git ignore (#1414)
* cleaned gitignore and add comments

* removed colon for readbility

* alphabetize files in sections

Co-authored-by: nelnog <nel.nogales@gmail.com>
2022-02-19 11:46:26 -08:00
Jrnl Bot
76d9bd4454 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
Micah Jerome Ellison
c6fa22b4f6 Drop support for Python 3.7 and 3.8 (#1412)
* Remove Python 3.7 and 3.8 from github actions workflows

* Update lockfile after running poetry update a couple times

* Update poetry lock

* Remove Python 3.7 and 3.8 from pyproject.toml and run poetry lock
2022-02-19 11:46:26 -08:00
Jrnl Bot
44e56fb53d Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
dependabot[bot]
97149f1d4d Bump pytest from 6.2.5 to 7.0.0 (#1407)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.5...7.0.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 11:46:26 -08:00
Jrnl Bot
b274fa4676 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
Jrnl Bot
299ddb2e4b Increment version to v2.8.4 2022-02-19 11:46:26 -08:00
Jrnl Bot
4761fee8d8 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
Jrnl Bot
a1c4ca23d3 Increment version to v2.8.4-beta2 2022-02-19 11:46:26 -08:00
Jrnl Bot
7532f79603 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
Micah Jerome Ellison
bb748db592 Add hash as a default tag symbol (#1398) 2022-02-19 11:46:26 -08:00
Micah Jerome Ellison
7fd1a9903a Add --co alias for --config-override (#1397) 2022-02-19 11:46:26 -08:00
Jrnl Bot
8be1c2e58a Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
Micah Jerome Ellison
dd6aa2f294 Add reference documentation to docs site and separate out "Tips and Tricks" and "External Editors" from "Recipes" (#1332)
* First draft of command line reference, mostly pulled from help screen

* Add first draft of config file reference, mostly pulled from advanced.md

* Clean up config file doc for readability

* Add --config-file and remove examples from CLI reference

* Add warning about time zone in timeformat

* More small changes, and adding template config keyword

* Cleaning up and re-ordering config file reference

* Clean up reference and anything else from advanced documentation that can live elsewhere and linking to config file reference wherever config file is mentioned

* Fix syntax highlighting in command line reference, clean up content a bit, include --diagnostic

* Mention version config key

* Apply minor changes suggested in PR review

* Rename "recipes" to "Tips and Tricks", pull "External Editors" out of it into its own page, and redirect old recipes link to tips-and-tricks

* Revert broken mkdocs-redirects usage from last commit
2022-02-19 11:46:26 -08:00
Jrnl Bot
275ce8b9a4 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
dependabot[bot]
371171cf48 Bump black from 21.12b0 to 22.1.0 (#1404)
* Bump black from 21.12b0 to 22.1.0

Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/22.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run make format

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2022-02-19 11:46:26 -08:00
Jrnl Bot
054df35937 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
dependabot[bot]
dfaab7051e Bump asteval from 0.9.25 to 0.9.26 (#1400)
Bumps [asteval](https://github.com/newville/asteval) from 0.9.25 to 0.9.26.
- [Release notes](https://github.com/newville/asteval/releases)
- [Commits](https://github.com/newville/asteval/compare/0.9.25...0.9.26)

---
updated-dependencies:
- dependency-name: asteval
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 11:46:26 -08:00
Jrnl Bot
896027e403 Update changelog [ci skip] 2022-02-19 11:46:26 -08:00
dependabot[bot]
0f496ca22d Bump ipython from 7.28.0 to 7.31.1 (#1401)
Bumps [ipython](https://github.com/ipython/ipython) from 7.28.0 to 7.31.1.
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](https://github.com/ipython/ipython/compare/7.28.0...7.31.1)

---
updated-dependencies:
- dependency-name: ipython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 11:46:25 -08:00