Python code should follow Black's style.
HTML/CSS must pass w3's validators, and if they don't it's a TODO
/bug. Unless of course the errors refer to newer standards that haven't been implemented in the validator yet.
Commit subjects should be written in imperative mood for consistency and clarity.
Uses .pylintrc
.
pylint -E sic/*py sic/views/*py
black sic/*py
git add sic/templates/TEMPL.html # stage first
djhtml sic/templates/TEMPL.html # in-place formatting
git add -p sic/templates/TEMPL.html # selectively add formatting if acceptable
vnu.jar "http://127.0.0.1:8002/"
Recursive check with tools/recursive_html_validate.py
:
python3 tools/recursive_html_validate.py "127.0.0.1:8002" # no login
python3 tools/recursive_html_validate.py --login --username superuser@website.tld --password "password" "127.0.0.1:8002"
usage: recursive_html_validate.py [-h] [--login] [--check-xml]
[--vnu-jar-bin VNU_JAR_BIN] [-u USERNAME]
[-p PASSWORD]
url
positional arguments:
url
optional arguments:
-h, --help show this help message and exit
--login login before scraping? (html and valid endpoints are
different when authenticated
--check-xml also check XML (feeds)
--vnu-jar-bin VNU_JAR_BIN
-u USERNAME, --username USERNAME
-p PASSWORD, --password PASSWORD
checklink --broken --quiet --indicator --summary --recursive --location "http://127.0.0.1:8000" "http://127.0.0.1:8000/"
Warning: css-validator.js has out-of-date rules.
css-validator.jar "http://127.0.0.1:8002/static/style.css"