Skip to content

Commit d416109

Browse files
authored
Merge pull request #207 from adafruit/pylint-patch
Added pylint patch
2 parents f49a93b + 7cd6680 commit d416109

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
From d0768eb933d121af0f440c999107a5b371e252cc Mon Sep 17 00:00:00 2001
2+
From: dherrada <[email protected]>
3+
Date: Wed, 24 Feb 2021 15:02:28 -0500
4+
Subject: [PATCH] Removed pylint process from github workflow
5+
6+
---
7+
.github/workflows/build.yml | 4 ----
8+
.pre-commit-config.yaml | 15 +++++++++++++++
9+
2 files changed, 15 insertions(+), 4 deletions(-)
10+
11+
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
12+
index 17b6e2f..0434bc5 100644
13+
--- a/.github/workflows/build.yml
14+
+++ b/.github/workflows/build.yml
15+
@@ -50,10 +50,6 @@ jobs:
16+
- name: Pre-commit hooks
17+
run: |
18+
pre-commit run --all-files
19+
- - name: PyLint
20+
- run: |
21+
- pylint $( find . -path './adafruit*.py' )
22+
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
23+
- name: Build assets
24+
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
25+
- name: Build docs
26+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
27+
index 6cd77e3..d017d7b 100644
28+
--- a/.pre-commit-config.yaml
29+
+++ b/.pre-commit-config.yaml
30+
@@ -17,3 +17,18 @@ repos:
31+
- id: check-yaml
32+
- id: end-of-file-fixer
33+
- id: trailing-whitespace
34+
+- repo: https://github.com/pycqa/pylint
35+
+ rev: pylint-2.7.1
36+
+ hooks:
37+
+ - id: pylint
38+
+ name: pylint (library code)
39+
+ types: [python]
40+
+ exclude: "^(docs/|examples/|setup.py$)"
41+
+- repo: local
42+
+ hooks:
43+
+ - id: pylint_examples
44+
+ name: pylint (examples code)
45+
+ description: Run pylint rules on "examples/*.py" files
46+
+ entry: /usr/bin/env bash -c
47+
+ args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
48+
+ language: system
49+
--
50+
2.25.1
51+

0 commit comments

Comments
 (0)