diff --git a/debug_toolbar/panels/__init__.py b/debug_toolbar/panels/__init__.py index ce6772ec6..168166bc6 100644 --- a/debug_toolbar/panels/__init__.py +++ b/debug_toolbar/panels/__init__.py @@ -87,7 +87,7 @@ def template(self): Template used to render :attr:`content`. Mandatory, unless the panel sets :attr:`has_content` to ``False`` or - overrides `attr`:content`. + overrides :attr:`content`. """ raise NotImplementedError @@ -248,6 +248,6 @@ def run_checks(cls): This will be called as a part of the Django checks system when the application is being setup. - Return a list of :class: `django.core.checks.CheckMessage` instances. + Return a list of :class:`django.core.checks.CheckMessage` instances. """ return [] diff --git a/docs/contributing.rst b/docs/contributing.rst index 4b0a867c5..eea9dfa8f 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -103,7 +103,7 @@ Style The Django Debug Toolbar uses `black `__ to format code and additionally uses flake8 and isort. The toolbar uses `pre-commit `__ to automatically apply our style -guidelines when a commit is made. Set up pre-commit before committing with: +guidelines when a commit is made. Set up pre-commit before committing with:: $ pre-commit install @@ -152,8 +152,8 @@ The release itself requires the following steps: #. Update supported Python and Django versions: - - ``setup.py`` ``python_requires`` list - - ``setup.py`` trove classifiers + - ``setup.cfg`` ``python_requires`` and ``install_requires`` options + - ``setup.cfg`` trove classifiers - ``README.rst`` Commit. @@ -167,7 +167,7 @@ The release itself requires the following steps: Commit. #. Bump version numbers in ``docs/changes.rst``, ``docs/conf.py``, - ``README.rst``, ``debug_toolbar/__init__.py`` and ``setup.py``. + ``README.rst``, ``debug_toolbar/__init__.py`` and ``setup.cfg``. Add the release date to ``docs/changes.rst``. Commit. #. Tag the new version.