diff --git a/CHANGELOG.md b/CHANGELOG.md index 84b3805..5082d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,32 +1,49 @@ +## v0.4.0 (2023-02-02) + +### Feat + +- export metadata (#14) + + - export metadata to CSV + - export metadata to JSON + - export CSV or JSON from command line + +- limit scope of notes with one or more filters (#13) + +### Fix + +- do not count in-page links as tags +- improve terminal colors of questions + ## v0.3.0 (2023-01-30) ### Feat -- **application**: add new metadata to frontmatter (#9) +- **application**: add new metadata to frontmatter (#9) ### Fix -- **application**: improve ux (#10) +- **application**: improve ux (#10) ## v0.2.0 (2023-01-25) ### Feat -- **configuration**: support multiple vaults in the configuration file (#6) +- **configuration**: support multiple vaults in the configuration file (#6) ### Refactor -- **application**: refactor questions to separate class (#7) +- **application**: refactor questions to separate class (#7) ## v0.1.1 (2023-01-23) ### Fix -- **notes**: diff now prints values in the form `[value]` -- **application**: exit after committing changes +- **notes**: diff now prints values in the form `[value]` +- **application**: exit after committing changes ## v0.1.0 (2023-01-22) ### Feat -- initial application release +- initial application release diff --git a/poetry.lock b/poetry.lock index c03592c..d0e0729 100644 --- a/poetry.lock +++ b/poetry.lock @@ -48,32 +48,46 @@ tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy [[package]] name = "black" -version = "22.12.0" +version = "23.1.0" description = "The uncompromising code formatter." category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "black-22.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9eedd20838bd5d75b80c9f5487dbcb06836a43833a37846cf1d8c1cc01cef59d"}, - {file = "black-22.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:159a46a4947f73387b4d83e87ea006dbb2337eab6c879620a3ba52699b1f4351"}, - {file = "black-22.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d30b212bffeb1e252b31dd269dfae69dd17e06d92b87ad26e23890f3efea366f"}, - {file = "black-22.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:7412e75863aa5c5411886804678b7d083c7c28421210180d67dfd8cf1221e1f4"}, - {file = "black-22.12.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c116eed0efb9ff870ded8b62fe9f28dd61ef6e9ddd28d83d7d264a38417dcee2"}, - {file = "black-22.12.0-cp37-cp37m-win_amd64.whl", hash = "sha256:1f58cbe16dfe8c12b7434e50ff889fa479072096d79f0a7f25e4ab8e94cd8350"}, - {file = "black-22.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:77d86c9f3db9b1bf6761244bc0b3572a546f5fe37917a044e02f3166d5aafa7d"}, - {file = "black-22.12.0-cp38-cp38-win_amd64.whl", hash = "sha256:82d9fe8fee3401e02e79767016b4907820a7dc28d70d137eb397b92ef3cc5bfc"}, - {file = "black-22.12.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:101c69b23df9b44247bd88e1d7e90154336ac4992502d4197bdac35dd7ee3320"}, - {file = "black-22.12.0-cp39-cp39-win_amd64.whl", hash = "sha256:559c7a1ba9a006226f09e4916060982fd27334ae1998e7a38b3f33a37f7a2148"}, - {file = "black-22.12.0-py3-none-any.whl", hash = "sha256:436cc9167dd28040ad90d3b404aec22cedf24a6e4d7de221bec2730ec0c97bcf"}, - {file = "black-22.12.0.tar.gz", hash = "sha256:229351e5a18ca30f447bf724d007f890f97e13af070bb6ad4c0a441cd7596a2f"}, + {file = "black-23.1.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:b6a92a41ee34b883b359998f0c8e6eb8e99803aa8bf3123bf2b2e6fec505a221"}, + {file = "black-23.1.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:57c18c5165c1dbe291d5306e53fb3988122890e57bd9b3dcb75f967f13411a26"}, + {file = "black-23.1.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:9880d7d419bb7e709b37e28deb5e68a49227713b623c72b2b931028ea65f619b"}, + {file = "black-23.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e6663f91b6feca5d06f2ccd49a10f254f9298cc1f7f49c46e498a0771b507104"}, + {file = "black-23.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:9afd3f493666a0cd8f8df9a0200c6359ac53940cbde049dcb1a7eb6ee2dd7074"}, + {file = "black-23.1.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:bfffba28dc52a58f04492181392ee380e95262af14ee01d4bc7bb1b1c6ca8d27"}, + {file = "black-23.1.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:c1c476bc7b7d021321e7d93dc2cbd78ce103b84d5a4cf97ed535fbc0d6660648"}, + {file = "black-23.1.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:382998821f58e5c8238d3166c492139573325287820963d2f7de4d518bd76958"}, + {file = "black-23.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bf649fda611c8550ca9d7592b69f0637218c2369b7744694c5e4902873b2f3a"}, + {file = "black-23.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:121ca7f10b4a01fd99951234abdbd97728e1240be89fde18480ffac16503d481"}, + {file = "black-23.1.0-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:a8471939da5e824b891b25751955be52ee7f8a30a916d570a5ba8e0f2eb2ecad"}, + {file = "black-23.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8178318cb74f98bc571eef19068f6ab5613b3e59d4f47771582f04e175570ed8"}, + {file = "black-23.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:a436e7881d33acaf2536c46a454bb964a50eff59b21b51c6ccf5a40601fbef24"}, + {file = "black-23.1.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:a59db0a2094d2259c554676403fa2fac3473ccf1354c1c63eccf7ae65aac8ab6"}, + {file = "black-23.1.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:0052dba51dec07ed029ed61b18183942043e00008ec65d5028814afaab9a22fd"}, + {file = "black-23.1.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:49f7b39e30f326a34b5c9a4213213a6b221d7ae9d58ec70df1c4a307cf2a1580"}, + {file = "black-23.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:162e37d49e93bd6eb6f1afc3e17a3d23a823042530c37c3c42eeeaf026f38468"}, + {file = "black-23.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:8b70eb40a78dfac24842458476135f9b99ab952dd3f2dab738c1881a9b38b753"}, + {file = "black-23.1.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:a29650759a6a0944e7cca036674655c2f0f63806ddecc45ed40b7b8aa314b651"}, + {file = "black-23.1.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:bb460c8561c8c1bec7824ecbc3ce085eb50005883a6203dcfb0122e95797ee06"}, + {file = "black-23.1.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:c91dfc2c2a4e50df0026f88d2215e166616e0c80e86004d0003ece0488db2739"}, + {file = "black-23.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2a951cc83ab535d248c89f300eccbd625e80ab880fbcfb5ac8afb5f01a258ac9"}, + {file = "black-23.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:0680d4380db3719ebcfb2613f34e86c8e6d15ffeabcf8ec59355c5e7b85bb555"}, + {file = "black-23.1.0-py3-none-any.whl", hash = "sha256:7a0f701d314cfa0896b9001df70a530eb2472babb76086344e688829efd97d32"}, + {file = "black-23.1.0.tar.gz", hash = "sha256:b0bd97bea8903f5a2ba7219257a44e3f1f9d00073d6cc1add68f0beec69692ac"}, ] [package.dependencies] click = ">=8.0.0" mypy-extensions = ">=0.4.3" +packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" -tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""} +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -724,14 +738,14 @@ files = [ [[package]] name = "pre-commit" -version = "2.21.0" +version = "3.0.4" description = "A framework for managing and maintaining multi-language pre-commit hooks." category = "dev" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"}, - {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"}, + {file = "pre_commit-3.0.4-py2.py3-none-any.whl", hash = "sha256:9e3255edb0c9e7fe9b4f328cb3dc86069f8fdc38026f1bf521018a05eaf4d67b"}, + {file = "pre_commit-3.0.4.tar.gz", hash = "sha256:bc4687478d55578c4ac37272fe96df66f73d9b5cf81be6f28627d4e712e752d5"}, ] [package.dependencies] @@ -1161,28 +1175,28 @@ files = [ [[package]] name = "ruff" -version = "0.0.217" +version = "0.0.240" description = "An extremely fast Python linter, written in Rust." category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.0.217-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:d0140fd3c1a254cca6ac9e5794b5d6090145dc6a3864a49b871c919fe2f7bbb7"}, - {file = "ruff-0.0.217-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:828f7cca24f8ccae160593094af355672f0f76d2738b31f85be9671301296136"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37ba8a78f16ddbe26b8833f06e6e679e56ca0ea1fce4c2f322ba995e3fce7557"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b12cf86a3f59127f592c49107761d45d36861bb82fdaae90246b308bdbbd7e10"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8d7cf9468112e18effc53fef291e7186d2deefabbe0924612c51f5a1f45dab6a"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:4060479b55e565755aa1c2b66daf6ac59770d266c86ee90d32e5c97ad9fc58b9"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:44f9b638628ca7625f0b1ea3e4073a08c7c8cfa1f1bee6693cbab1b9b5e38945"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7d6d01bb1b4d9ef48fd2bdff714e222589fa0c779f20befeef8843dad1833320"}, - {file = "ruff-0.0.217-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ae536b48b81aab1b2119b0988cdbb48728c965cfa1fda4ec285187b15e75a09e"}, - {file = "ruff-0.0.217-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:35c77fc925d4b7b3f2ec47e7136e084b046b5ccdd39149f2df51ed3675b4fd1f"}, - {file = "ruff-0.0.217-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:0c02ef082b697a8aa8725d9c519cd9199f8ee2cbfb43e43d25d330e418b22fe3"}, - {file = "ruff-0.0.217-py3-none-musllinux_1_2_i686.whl", hash = "sha256:3d15ac221c5706981b376cb563aeacccf58c4903199f936f168791d0c2cd9bc4"}, - {file = "ruff-0.0.217-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a5bbbee140e73f38b43fae8a13bba2ea38398eed4413ecec6d18a95a3679dbe2"}, - {file = "ruff-0.0.217-py3-none-win32.whl", hash = "sha256:9f874730f3823c2791795017b7c8e0c3ca27a191adeeaed3164319202e6bbeb4"}, - {file = "ruff-0.0.217-py3-none-win_amd64.whl", hash = "sha256:56f4205976e33c02bd8af0eaa7e35be0e24d9945b7de56afebf735b26be2a67b"}, - {file = "ruff-0.0.217.tar.gz", hash = "sha256:39b2b1de9330fcf60643bdd6c4c660b457390c686b4ba7101bea019a01446494"}, + {file = "ruff-0.0.240-py3-none-macosx_10_7_x86_64.whl", hash = "sha256:222dd5a5f7cf2f155d7bb77ac484b9afd6f8aaecd963a91c8dbb93355ef42fd2"}, + {file = "ruff-0.0.240-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl", hash = "sha256:2c956a037671b5ab81546346f3e7f0b3f0e13d0b2e5a3e88c1b2227a1e9aae82"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b43c73fc165f8c7de7c095208d05653744aee6fb0a71680449c2ff1cf59183ea"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f58f1122001150d70909885ccf43d869237be814d4cfc74bb60b3883635e440a"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3b427050336b8967755e305f506e84e550591fa47766b5b0cb0c8bcb5c8ca9e7"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:0fe8cc47c4c3423548a074e163388f943a14b1e349be88e5dc4cd43df81b6344"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2f40f07d030e7a8cbe365a62fe8543e146b9bcd2a31f5625c2beaccad0d1b8c1"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c222ad12e4bf795e3cec64d56178af1bfbc5d97929a0abf685564937e52c9862"}, + {file = "ruff-0.0.240-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a26eb3cd68527bcae2543027a0a674d37d03f239f6f025049149115c9775438d"}, + {file = "ruff-0.0.240-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4591c9104b6898cbd0df57f6b6f8e2907b08fa85ff5196750f0a7b370ae9f78e"}, + {file = "ruff-0.0.240-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:7fed973319ca0a8c2e5c80732217b9b1ec069305839f480907469791e596b150"}, + {file = "ruff-0.0.240-py3-none-musllinux_1_2_i686.whl", hash = "sha256:4ce049d1fedb1b785fef29403d26e6109b77287b51afd10b74edc986f609c4af"}, + {file = "ruff-0.0.240-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5127cfaec1f78bd7104174eeacee85dea64796905812b448efd60f504cfa5eec"}, + {file = "ruff-0.0.240-py3-none-win32.whl", hash = "sha256:071e01a980ffd638a5ce7960ce662fa9b434962f78e7c575478c64e5f147aac8"}, + {file = "ruff-0.0.240-py3-none-win_amd64.whl", hash = "sha256:d0b1ac5d1d882db25ca4b7dff8aa813ecc7912bdde4ad8f59f2d922b1996cbc7"}, + {file = "ruff-0.0.240.tar.gz", hash = "sha256:0f1a0b04ce6f3d59894c64f3c3a5a0a35ff4803b8dc51e962d7de42fdb0f5eb1"}, ] [[package]] @@ -1329,18 +1343,6 @@ files = [ {file = "types_python_dateutil-2.8.19.6-py3-none-any.whl", hash = "sha256:cfb7d31021c6bce6f3362c69af6e3abb48fe3e08854f02487e844ff910deec2a"}, ] -[[package]] -name = "types-pyyaml" -version = "6.0.12.3" -description = "Typing stubs for PyYAML" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "types-PyYAML-6.0.12.3.tar.gz", hash = "sha256:17ce17b3ead8f06e416a3b1d5b8ddc6cb82a422bb200254dd8b469434b045ffc"}, - {file = "types_PyYAML-6.0.12.3-py3-none-any.whl", hash = "sha256:879700e9f215afb20ab5f849590418ab500989f83a57e635689e1d50ccc63f0c"}, -] - [[package]] name = "typing-extensions" version = "4.4.0" @@ -1419,4 +1421,4 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "86e17cb6b51dcd96ee79997b46186dd4ceb882d3344aca70b05859b24334d933" +content-hash = "5bb4866827da1d2e417218c8120be075f1a61a25f015d97183feb63098c64afa" diff --git a/pyproject.toml b/pyproject.toml index 6226c3d..1e0d44e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ name = "obsidian-metadata" readme = "README.md" repository = "https://github.com/natelandau/obsidian-metadata" - version = "0.3.0" + version = "0.4.0" [tool.poetry.scripts] # https://python-poetry.org/docs/pyproject/#scripts obsidian-metadata = "obsidian_metadata.cli:app" @@ -36,20 +36,19 @@ [tool.poetry.group.dev.dependencies] absolufy-imports = "^0.3.1" - black = "^22.12.0" - commitizen = "^2.39.1" - coverage = "^7.0.4" + black = "^23.1.0" + commitizen = "^2.40.0" + coverage = "^7.1.0" interrogate = "^1.5.0" mypy = "^0.991" pdoc = "^12.3.1" pep8-naming = "^0.13.3" poethepoet = "^0.18.0" - pre-commit = "^2.21.0" + pre-commit = "^3.0.4" pysnooper = "^1.1.1" - ruff = "^0.0.217" + ruff = "^0.0.240" typeguard = "^2.13.3" types-python-dateutil = "^2.8.19.5" - types-pyyaml = "^6.0.12.2" vulture = "^2.7" [tool.ruff] # https://github.com/charliermarsh/ruff @@ -141,9 +140,10 @@ [tool.commitizen] bump_message = "bump(release): v$current_version → v$new_version" + changelog_incremental = true tag_format = "v$version" update_changelog_on_bump = true - version = "0.3.0" + version = "0.4.0" version_files = [ "pyproject.toml:version", "src/obsidian_metadata/__version__.py:__version__", diff --git a/src/obsidian_metadata/__version__.py b/src/obsidian_metadata/__version__.py index d7d8410..b74826c 100644 --- a/src/obsidian_metadata/__version__.py +++ b/src/obsidian_metadata/__version__.py @@ -1,2 +1,2 @@ """obsidian-metadata version.""" -__version__ = "0.3.0" +__version__ = "0.4.0"