fix(tox): move dependency to requirements.txt 91/39691/2
authorVratko Polak <vrpolak@cisco.com>
Wed, 18 Oct 2023 07:13:32 +0000 (09:13 +0200)
committerVratko Polak <vrpolak@cisco.com>
Wed, 18 Oct 2023 12:01:55 +0000 (12:01 +0000)
Two reasons.
Most importantly, executor image creation scripts
will now see the pylint version used in tox job.
Additionally, this makes it easier for people
to run pylint locally (without checking all files as tox does).

Change-Id: I89f1d428e676e27d6f35c79ca9c22224c4c99a3e
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
requirements.txt
tox.ini

index a4766e1..398d689 100644 (file)
@@ -44,6 +44,9 @@ jsonschema==4.18.4
 rfc3339-validator==0.1.4
 rfc3987==1.3.8
 
+# Dependencies for some tox checkers (not tox setup itself).
+pylint==3.0.1
+
 # Other PIP freeze dependencies.
 attrs==23.1.0
 bcrypt==4.0.1
diff --git a/tox.ini b/tox.ini
index ce0f9be..1d4cad1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -78,9 +78,7 @@ commands = bash {[tox]script_dir}/new_line.sh
 ignore_outcome = true
 setenv = PYTHONPATH = {toxinidir}
 basepython = python3
-deps =
-    pylint==3.0.1
-    -r ./requirements.txt
+deps = -r ./requirements.txt
 whitelist_externals = /bin/bash
 commands = bash {[tox]script_dir}/pylint.sh