Skip to content

Commit

Permalink
python/requirements: Add troubleshooting for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 19, 2023
1 parent acf266a commit bd61a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/python/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,5 @@ If a requirement is reported as unused but is required:
#. If the package is optional – for example, it is imported in a ``try`` and ``except ImportError`` block – use the ``STANDARD_MAINTENANCE_SCRIPTS_IGNORE`` `environment variable <https://github.com/open-contracting/standard-maintenance-scripts#tests>`__.

#. If the package is used exclusively outside of application code – for example, as a command in the production environment or in a GitHub workflow, or in an `entry point <https://packaging.python.org/en/latest/specifications/entry-points/>`__ or as a Sphinx extension – use the ``STANDARD_MAINTENANCE_SCRIPTS_IGNORE`` environment variable.

If the repository uses :ref:`linting-pre-commit`, and you see errors originating from ``pip``, it is likely that you need to upgrade ``pip-tools`` in both ``.pre-commit-config.yaml`` and ``requirements_dev.txt``.

0 comments on commit bd61a12

Please sign in to comment.