Skip to content

Commit

Permalink
Merge pull request #4168 from nawazkh/update_boilerplate_ignore_dirs
Browse files Browse the repository at this point in the history
update ignored_dirs in boilerplate.py and update pylint in pre-commit config to ignore boilerplate.py
  • Loading branch information
k8s-ci-robot authored Oct 26, 2023
2 parents 07a7ab4 + 062b720 commit 6f6dd10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ repos:
rev: v2.17.2
hooks:
- id: pylint
exclude: ^hack/boilerplate/boilerplate.py$
- repo: local
hooks:
- id: make-verify-boilerplate
Expand Down
2 changes: 1 addition & 1 deletion hack/boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def file_extension(filename):

skipped_dirs = ['Godeps', 'third_party', '_gopath', '_output', '.git', 'cluster/env.sh',
"vendor", "test/e2e/generated/bindata.go", "hack/boilerplate/test",
"pkg/kubectl/generated/bindata.go", "tilt_modules"]
"pkg/kubectl/generated/bindata.go", "tilt_modules", "_artifacts", "hack/tools/bin"]

# list all the files contain 'DO NOT EDIT', but are not generated
skipped_ungenerated_files = ['hack/lib/swagger.sh', 'hack/boilerplate/boilerplate.py']
Expand Down

0 comments on commit 6f6dd10

Please sign in to comment.