|
1 |
| -============= |
2 |
| -flake8-scrapy |
3 |
| -============= |
| 1 | +=========== |
| 2 | +scrapy-lint |
| 3 | +=========== |
4 | 4 |
|
5 | 5 | |version| |python_version| |ci|
|
6 | 6 |
|
7 |
| -.. |version| image:: https://img.shields.io/pypi/v/flake8-scrapy.svg |
8 |
| - :target: https://pypi.org/pypi/flake8-scrapy |
| 7 | +.. |version| image:: https://img.shields.io/pypi/v/scrapy-lint.svg |
| 8 | + :target: https://pypi.org/pypi/scrapy-lint |
9 | 9 | :alt: PyPI version
|
10 | 10 |
|
11 |
| -.. |python_version| image:: https://img.shields.io/pypi/pyversions/flake8-scrapy.svg |
12 |
| - :target: https://pypi.org/pypi/flake8-scrapy |
| 11 | +.. |python_version| image:: https://img.shields.io/pypi/pyversions/scrapy-lint.svg |
| 12 | + :target: https://pypi.org/pypi/scrapy-lint |
13 | 13 | :alt: Supported Python versions
|
14 | 14 |
|
15 |
| -.. |ci| image:: https://github.com/scrapy/flake8-scrapy/workflows/CI/badge.svg |
16 |
| - :target: https://github.com/scrapy/flake8-scrapy/actions?query=workflow%3ACI |
| 15 | +.. |ci| image:: https://github.com/scrapy/scrapy-lint/workflows/CI/badge.svg |
| 16 | + :target: https://github.com/scrapy/scrapy-lint/actions?query=workflow%3ACI |
17 | 17 | :alt: CI
|
18 | 18 |
|
19 |
| -.. intro-start |
| 19 | +.. readme-start |
| 20 | +
|
| 21 | +**scrapy-lint** is a linter for `Scrapy <https://scrapy.org/>`_ projects. |
| 22 | + |
| 23 | +To install:: |
20 | 24 |
|
21 |
| -A Flake8_ plugin to catch common issues in Scrapy projects. |
| 25 | + pip install scrapy-lint |
22 | 26 |
|
23 |
| -.. _Flake8: https://flake8.pycqa.org/en/latest/ |
| 27 | +To run:: |
24 | 28 |
|
25 |
| -Install:: |
| 29 | + scrapy-lint |
26 | 30 |
|
27 |
| - pip install flake8-scrapy |
| 31 | +To use with `pre-commit <https://pre-commit.com/>`__, add the following to your |
| 32 | +``.pre-commit-config.yaml``: |
28 | 33 |
|
29 |
| -And run Flake8_:: |
| 34 | +.. code-block:: yaml |
30 | 35 |
|
31 |
| - flake8 |
| 36 | + - repo: https://github.com/scrapy/scrapy-lint |
| 37 | + rev: "0.0.2" |
| 38 | + hooks: |
| 39 | + - id: scrapy-lint |
32 | 40 |
|
33 |
| -.. intro-end |
| 41 | +Can be combined with `ruff <https://docs.astral.sh/ruff/>`_, |
| 42 | +`mypy <https://mypy.readthedocs.io/en/stable/>`_, |
| 43 | +`pylint <https://pylint.readthedocs.io/en/stable/>`_ and |
| 44 | +`flake8-requirements <https://pypi.org/project/flake8-requirements/>`_. |
| 45 | + |
| 46 | +.. readme-end |
| 47 | +
|
| 48 | +Documentation |
| 49 | +============= |
34 | 50 |
|
35 | 51 | See the documentation_ for more.
|
36 | 52 |
|
37 |
| -.. _documentation: https://flake8-scrapy.readthedocs.io/en/latest/ |
| 53 | +.. _documentation: https://scrapy-lint.readthedocs.io/en/latest/ |
0 commit comments