Skip to content

Commit b005706

Browse files
authored
Merge pull request #242 from adafruit/tests-dir-fix
Added patch for f string check in tests dir
2 parents 834a8e8 + 60b5cbc commit b005706

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From e3fe3ad633702ac996e32516b9a4d099e0ca3c3b Mon Sep 17 00:00:00 2001
2+
From: dherrada <[email protected]>
3+
Date: Tue, 28 Sep 2021 14:56:20 -0400
4+
Subject: [PATCH] Added pylint disable for f-strings in tests directory
5+
6+
---
7+
.pre-commit-config.yaml | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
11+
index 8690c22..43636ac 100644
12+
--- a/.pre-commit-config.yaml
13+
+++ b/.pre-commit-config.yaml
14+
@@ -38,5 +38,5 @@ repos:
15+
name: pylint (tests code)
16+
description: Run pylint rules on "tests/*.py" files
17+
entry: /usr/bin/env bash -c
18+
- args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring $test; done)']
19+
+ args: ['([[ ! -d "tests" ]] || for test in $(find . -path "./tests/*.py"); do pylint --disable=missing-docstring,consider-using-f-string $test; done)']
20+
language: system
21+
--
22+
2.25.1
23+

0 commit comments

Comments
 (0)