Use watchfiles as a file watching backend

This doesn't use polling unless absolutely necessarily, making it more efficient. It also reduces the amount of first-party code required, and simplifies working out which files are being watched.
This commit is contained in:
Jake Howard 2023-06-21 22:01:38 +01:00 committed by Deniz Turgut
commit 61ca47c519
No known key found for this signature in database
GPG key ID: 87B7168D7AB3ED2F
4 changed files with 32 additions and 260 deletions

View file

@ -41,6 +41,7 @@ rich = ">=10.1"
unidecode = ">=1.1"
markdown = {version = ">=3.1", optional = true}
backports-zoneinfo = {version = "^0.2.1", python = "<3.9"}
watchfiles = "^0.19.0"
[tool.poetry.dev-dependencies]
BeautifulSoup4 = "^4.9"