Skip to content

Commit 834a8e8

Browse files
authored
Merge pull request #241 from adafruit/pylint-fstring-disable-patch
Added pylint fstring check disable patch
2 parents 8715c3c + f35b531 commit 834a8e8

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 351ab4ed57292ee4f906fa7ffc20d98037cd88f4 Mon Sep 17 00:00:00 2001
2+
From: dherrada <[email protected]>
3+
Date: Thu, 23 Sep 2021 17:52:55 -0400
4+
Subject: [PATCH] Globally disabled consider-using-f-string pylint check
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 354c761..8810708 100644
12+
--- a/.pre-commit-config.yaml
13+
+++ b/.pre-commit-config.yaml
14+
@@ -30,5 +30,5 @@ repos:
15+
name: pylint (examples code)
16+
description: Run pylint rules on "examples/*.py" files
17+
entry: /usr/bin/env bash -c
18+
- args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
19+
+ args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)']
20+
language: system
21+
--
22+
2.25.1
23+

0 commit comments

Comments
 (0)