Commit graph

1420 commits

Author SHA1 Message Date
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
Jonathan Wren
9cb5630ee1 Unskip some tests (#1399)
* remove skip_editor test and tag

* remove useless test

* unskip blank input test

* formatting

* rename test so it doesn't overwrite other test

* unskip some dayone tests that now work
2022-02-19 11:46:25 -08:00
Jonathan Wren
41575478a4 add message to catch-all exception block 2022-02-12 13:42:37 -08:00
Jonathan Wren
5726bc6197 format with black 2022-02-12 13:25:30 -08:00
Jonathan Wren
09c04aa5de 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-02-05 16:05:43 -08:00
Jrnl Bot
49930e16f7 Update changelog [ci skip] 2022-01-15 20:14:21 +00:00
dependabot[bot]
5555557cec
Bump cryptography from 36.0.0 to 36.0.1 (#1389)
Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.0 to 36.0.1.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/36.0.0...36.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  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-01-15 12:12:39 -08:00
Jrnl Bot
d0921fb7b6 Update changelog [ci skip] 2022-01-08 22:52:46 +00:00
Jonathan Wren
e7f24527c3
Fix styling on documentation sidebar (#1395)
* fix sidebar stling in docs theme

* don't display heading levels higher than 3 in sidebar

* update sitemap step for easier debugging

* add matrix so github doesn't get confused
2022-01-08 14:51:02 -08:00
Jrnl Bot
c4c60efab2 Update changelog [ci skip] 2022-01-08 20:44:40 +00:00
dependabot[bot]
bf757bdc90
Bump keyring from 23.4.0 to 23.5.0 (#1392)
Bumps [keyring](https://github.com/jaraco/keyring) from 23.4.0 to 23.5.0.
- [Release notes](https://github.com/jaraco/keyring/releases)
- [Changelog](https://github.com/jaraco/keyring/blob/main/CHANGES.rst)
- [Commits](https://github.com/jaraco/keyring/compare/v23.4.0...v23.5.0)

---
updated-dependencies:
- dependency-name: keyring
  dependency-type: direct:production
  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-01-08 12:43:09 -08:00
Jrnl Bot
256aab9877 Update changelog [ci skip] 2022-01-08 20:38:48 +00:00
Micah Jerome Ellison
3b0c7992d2
Add weekly Saturday morning build and prevent Python 3.11 from running on PRs (#1387)
* Add weekly Saturday morning build and prevent Python 3.11 from running on PRs
* Fix extraneous greater than symbol
* Add branches and paths to cron schedule
* Add back missing hyphen before cron
* Trying to fix YAML syntax error
* Remove branches and paths from schedule
* Fix invalid conditional, push 3.11 check down to actual tests like we did with 3.10
* Separate out PR tests and scheduled tests
* Fix YAML syntax
* Fix uses action reference
* Use proper action folder structure
* Check out repo before running local action
* Specify bash shell and remove unneeded if
* Specify shell for each run statement
* Move secret out of composite action since it is not supported directly
* Fix half-fixed previous commit
* Remove extraneous ./
* Fix pathing and name steps
* take out shell key from action
* put back missing git config line in workflows

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
2022-01-08 12:36:58 -08:00
Jrnl Bot
bb0d96a005 Update changelog [ci skip] 2021-12-11 20:41:46 +00:00
Jrnl Bot
2244f1ff77 Increment version to v2.8.4-beta1 2021-12-11 20:40:10 +00:00
Jrnl Bot
28b6126853 Update changelog [ci skip] 2021-12-11 20:37:19 +00:00
Jonathan Wren
2ab485de8c
Improve handling of mocking logic in pytest (#1382)
* WIP

* fix handling of user input (stdin, input, getpass)

* take out redundant pytest step

* fix handling of 'we should' statements

* fix test that doesn't use a config file

* fix another test that uses stdin

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>

* remove .tool-versions file per PR feedback

* add comment to clarify why disembodied variables are here

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-12-11 12:35:32 -08:00
dependabot[bot]
3518e37087
Bump black from 21.11b1 to 21.12b0 (#1384)
Bumps [black](https://github.com/psf/black) from 21.11b1 to 21.12b0.
- [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)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-11 12:02:30 -08:00
dependabot[bot]
e9e75ea36b
Bump keyring from 23.3.0 to 23.4.0 (#1383)
Bumps [keyring](https://github.com/jaraco/keyring) from 23.3.0 to 23.4.0.
- [Release notes](https://github.com/jaraco/keyring/releases)
- [Changelog](https://github.com/jaraco/keyring/blob/main/CHANGES.rst)
- [Commits](https://github.com/jaraco/keyring/compare/v23.3.0...v23.4.0)

---
updated-dependencies:
- dependency-name: keyring
  dependency-type: direct:production
  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>
2021-12-11 12:02:20 -08:00
Jrnl Bot
4552936e89 Update changelog [ci skip] 2021-12-11 19:57:33 +00:00
dependabot[bot]
bf0a4e0d1a
Bump yq from 2.12.2 to 2.13.0 (#1385)
Bumps [yq](https://github.com/kislyuk/yq) from 2.12.2 to 2.13.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.12.2...v2.13.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>
2021-12-11 11:55:55 -08:00