From 6130ea6767f91f40e84c83b038f36d3d984fe3c7 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Tue, 12 Nov 2019 18:03:46 +0000 Subject: Start linting doc/source/conf.py Add `doc/source/conf.py` to the filelist for Black and Pylint. Previously this file was not covered by any of the linters, so this patch includes one-off sweeping changes for the formatting. To make pylint happy, we had to disable a warning about defining a variable called `copyright` since that's a built-in. It's unlikely that we will ever need the built-in `copyright()` in this module, so it seems safe to disable it. --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index bd07e9e6c..30e398ceb 100644 --- a/tox.ini +++ b/tox.ini @@ -110,7 +110,7 @@ skip_install = True deps = black==19.10b0 commands = - black {posargs: src tests} + black {posargs: src tests doc/source/conf.py} # # Code format checkers @@ -120,7 +120,7 @@ skip_install = True deps = black==19.10b0 commands = - black --check --diff {posargs: src tests} + black --check --diff {posargs: src tests doc/source/conf.py} # # Running linters @@ -131,7 +131,7 @@ commands_pre = {envpython} setup.py build_ext --inplace commands = - pylint {posargs: src tests} + pylint {posargs: src tests doc/source/conf.py} deps = -rrequirements/requirements.txt -rrequirements/dev-requirements.txt -- cgit v1.2.1