Merge pull request #242 from adafruit/tests-dir-fix

Added patch for f string check in tests dir
This commit is contained in:
Kattni 2021-09-28 15:01:59 -04:00 committed by GitHub
commit b005706ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,23 @@
From e3fe3ad633702ac996e32516b9a4d099e0ca3c3b Mon Sep 17 00:00:00 2001
From: dherrada <dylan.herrada@adafruit.com>
Date: Tue, 28 Sep 2021 14:56:20 -0400
Subject: [PATCH] Added pylint disable for f-strings in tests directory
---
.pre-commit-config.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8690c22..43636ac 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -38,5 +38,5 @@ repos:
name: pylint (tests code)
description: Run pylint rules on "tests/*.py" files
entry: /usr/bin/env bash -c
- args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']
+ args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring,consider-using-f-string $test; done)']
language: system
--
2.25.1