-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve .coafile rules using inheritance
Fix linting where appropriate. Change-Id: Ife5f944bd3819858486d323ed91a80df7f075d88 Signed-off-by: Thanh Ha <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
[Git] | ||
[all] | ||
ignore = .tox/**, | ||
.git/**, | ||
.gitignore, | ||
.gitreview, | ||
.gitmodules, | ||
node_modules/** | ||
|
||
[all.Git] | ||
bears = GitCommitBear | ||
ignore_length_regex = Signed-off-by, | ||
Also-by, | ||
Co-authored-by, | ||
http://, | ||
https:// | ||
|
||
[Documentation] | ||
[all.Documentation] | ||
bears = WriteGoodLintBear | ||
files = docs/**/*.rst | ||
|
||
[Python] | ||
[all.Python] | ||
bears = BanditBear, | ||
PEP8Bear, | ||
PyCommentedCodeBear, | ||
PyDocStyleBear, | ||
PyFlakesBear, | ||
PyImportSortBear | ||
files = lftools/**/*.py | ||
files = **.py | ||
ignore += docs/conf.py | ||
known_first_party_imports = lftools | ||
known_third_party_imports = pytest, six | ||
pydocstyle_ignore = D203, D213, D301 | ||
max_line_length = 120 | ||
|
||
[Shell] | ||
[all.Shell] | ||
bears = ShellCheckBear, | ||
SpaceConsistencyBear | ||
files = shell/* | ||
files = **.sh, shell/* | ||
shell = bash | ||
indent_size = 4 | ||
use_spaces = yeah |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters