Thank you for considering to contribute to this project. These guidelines will help you get going with development and outline the most important rules to follow when submitting pull requests for this project.
- Clone the (forked) repository
- Create a virtualenv with
virtualenv env
- Activate virtualenv
source env/bin/activate
orenv/Scripts/activate
on Windows - Run
pip install -r dev-requirements.txt
in the project directory - Run
pip install .
in the project directory
flake8 htmlproofer/ tests/ setup.py --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 htmlproofer/ tests/ setup.py --count --max-complexity=10 --max-line-length=127 --statistic
mypy htmlproofer
isort --check .
pytest tests/unit
Without directory urls:
cd tests/integration
mkdocs build
With directory urls:
cd tests/integration
mkdocs build --use-directory-urls
To get changes merged, create a pull request. Here are a few things to pay attention to when doing so:
The summary of a commit should be concise and worded in an imperative mood. ...a what mood? This should clear things up: How to Write a Git Commit Message
Make sure your code follows PEP-8 and keeps things consistent with the rest of the code.
If it makes sense, writing tests for your PRs is always appreciated and will help get them merged.