scrapy-lint is a linter for Scrapy projects.
To install:
pip install scrapy-lint
To run:
scrapy-lint
To use with pre-commit, add the following to your
.pre-commit-config.yaml
:
- repo: https://github.com/scrapy/scrapy-lint
rev: "0.0.2"
hooks:
- id: scrapy-lint
Can be combined with ruff, mypy, pylint and flake8-requirements.
See the documentation for more.