Merge pull request #242 from adafruit/tests-dir-fix
Added patch for f string check in tests dir
This commit is contained in:
commit
b005706ff8
1 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
Loading…
Reference in a new issue