Implement the following checks using [pre-commit](https://[pre-commit](https://pre-commit.com/).com/) hooks. 1. Linting (using `pylint` with `pylint-django` plugin). 2. Formatting (using `black` formatter). 3. Trim trailing whitespaces. 4. Newline at end of file.