Skip to content

Commit 3772223

Browse files
committed
pylint
1 parent 8e12ef2 commit 3772223

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎.config/.copier-answers.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.151-14-g98a92220
2+
_commit: v0.0.151-17-g7f4ed3c9
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
copier_answers_directory: .config
55
description: Copier template for creating Python libraries and executables

‎.devcontainer/devcontainer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
"initializeCommand": "sh .devcontainer/initialize-command.sh",
6161
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
6262
"postStartCommand": "sh .devcontainer/post-start-command.sh"
63-
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 6df4cc30 # spellchecker:disable-line
63+
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): ad6af682 # spellchecker:disable-line
6464
}

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,14 @@ repos:
259259
hooks:
260260
- id: pylint
261261
name: pylint
262+
# exclude any generated code
263+
# flagging duplicate code for __all__ lists is a false positive
262264
# exclude the template files---duplication within them will be discovered during CI of that template instantiation
263265
exclude: |
264266
(?x)^(
265267
.*/generated/graphql/.*|
266268
.*/generated/open[-_]api/.*|
269+
.*__init__\.py|
267270
template/.*|
268271
)$
269272
args:

‎copier_template_resources/vcrpy_fixtures.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from typing import Any
1313

1414
import pytest
15-
from vcr import VCR
1615
from vcr import matchers as _vcr_matchers
16+
from vcr.config import VCR
1717
from vcr.request import Request as VCRRequest
1818
from vcr.util import read_body as _vcr_read_body
1919

‎template/.pre-commit-config.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,14 @@ repos:
259259
hooks:
260260
- id: pylint
261261
name: pylint
262+
# exclude any generated code
263+
# flagging duplicate code for __all__ lists is a false positive
262264
# exclude the template files---duplication within them will be discovered during CI of that template instantiation
263265
exclude: |
264266
(?x)^(
265267
.*/generated/graphql/.*|
266268
.*/generated/open[-_]api/.*|
269+
.*__init__\.py|
267270
template/.*|
268271
)$
269272
args:

0 commit comments

Comments
 (0)