Skip to content

scrapy/scrapy-lint

Repository files navigation

scrapy-lint

PyPI version Supported Python versions CI Coverage

scrapy-lint is a linter for Scrapy projects.

To install:

pip install scrapy-lint

To run:

scrapy-lint

Some issues can be fixed automatically. Such issues are marked with [*] in the output, and you can apply their fixes with the --fix option:

scrapy-lint --fix

To use with pre-commit, add the following to your .pre-commit-config.yaml:

- repo: https://github.com/scrapy/scrapy-lint
  rev: v0.1.1
  hooks:
  - id: scrapy-lint

Can be combined with ruff, mypy, pylint and flake8-requirements.

Documentation

See the documentation for more.

About

A linter for Scrapy projects.

Topics

Resources

License

Stars

22 stars

Watchers

4 watching

Forks

Contributors

Languages