diff --git a/.vscode/settings.json b/.vscode/settings.json index 9e8676c..23b9589 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,6 +10,7 @@ "aspf", "autoclass", "automodule", + "backported", "bellsouth", "brakhane", "Brightmail", @@ -19,6 +20,7 @@ "Codecov", "confnew", "dateparser", + "dateutil", "Davmail", "DBIP", "deflist", @@ -68,6 +70,7 @@ "Munge", "ndjson", "newkey", + "nojekyll", "nondigest", "nosecureimap", "nosniff", @@ -83,6 +86,7 @@ "quickstart", "Reindex", "replyto", + "reversename", "Rollup", "Rpdm", "SAMEORIGIN", diff --git a/build.sh b/build.sh index 6212871..34444f7 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,20 @@ #!/usr/bin/env bash +set -e + +if [ ! -d "venv" ]; then + virtualenv venv || exit +fi + . venv/bin/activate -pip3 install -U -r requirements.txt && cd docs && make html && cp -r build/html/* ../../parsedmarc-docs/ && cd .. && flake8 parsedmarc && flake8 tests.py && python3 tests.py && rm -rf dist/ build/ && hatch build +pip install -U -r requirements.txt +cd docs +make clean +make html +touch build/html/.nojekyll +cp -rf build/html/* ../../parsedmarc-docs/ +cd .. +flake8 parsedmarc +python3 tests.py +rm -rf dist/ build/ +hatch build \ No newline at end of file diff --git a/parsedmarc/utils.py b/parsedmarc/utils.py index df16aa6..f4d211a 100644 --- a/parsedmarc/utils.py +++ b/parsedmarc/utils.py @@ -62,7 +62,7 @@ class EmailParserError(RuntimeError): class DownloadError(RuntimeError): - """Rasied when an error occurs when downloading a file""" + """Raised when an error occurs when downloading a file""" def decode_base64(data):