Skip to content

Commit 6c43b0e

Browse files
committed
chore: Add boilerplate tool config files from core repo
Branch: main Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
1 parent b34d711 commit 6c43b0e

12 files changed

Lines changed: 1389 additions & 0 deletions

.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[run]
2+
branch = True
3+
omit =
4+
*/__init__.py
5+
6+
[report]
7+
exclude_lines =
8+
pragma: no cover
9+
def __repr__
10+
if self.debug
11+
raise AssertionError
12+
raise NotImplentedError
13+
if 0:
14+
if __name__ == .__main__.:
15+
16+
ignore_errors = True

.darglint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[darglint]
2+
ignore=DAR402

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with UTF-8 encoding
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# Indentation for source and config files
12+
[*.{py,yml,yaml,json,js,ts,md,sh,txt}]
13+
indent_style = space
14+
indent_size = 4
15+
16+
# Markdown and JSON should not trim trailing spaces (needed for alignment)
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
# Shell scripts
21+
[*.sh]
22+
insert_final_newline = true
23+
24+
# Makefiles use tabs, not spaces
25+
[Makefile]
26+
indent_style = tab
27+
28+
# Ignore binary files
29+
[*.{png,jpg,jpeg,gif,ico,svg,webp,pyc}]
30+
insert_final_newline = false
31+
trim_trailing_whitespace = false

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-line-length = 600
3+
extend-ignore =
4+
E203,
5+
W503
6+
# per-file-ignores =

.htmlhintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"attr-value-double-quotes": true,
3+
"tag-pair": true,
4+
"doctype-first": true,
5+
"id-unique": true,
6+
"spec-char-escape": false
7+
}

.prospector.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# .prospector.yaml - Configuration for prospector
2+
output-format: text
3+
strictness: medium
4+
test-warnings: false
5+
doc-warnings: true
6+
member-warnings: true
7+
8+
ignore-paths:
9+
- docs
10+
- build
11+
- dist
12+
- .tox
13+
- .eggs
14+
- venv
15+
- .venv
16+
17+
ignore-patterns:
18+
- .*\.egg$
19+
- .*migrations.*
20+
- .*settings\.py
21+
- .*manage\.py
22+
- tests/.*
23+
24+
pylint:
25+
disable:
26+
- too-few-public-methods
27+
- too-many-arguments
28+
- too-many-instance-attributes
29+
- too-many-locals
30+
31+
pep8:
32+
full: true
33+
options:
34+
max-line-length: 200
35+
36+
mccabe:
37+
run: true
38+
options:
39+
max-complexity: 10
40+
41+
dodgy:
42+
run: true
43+
44+
pyroma:
45+
run: true
46+
disable:
47+
- PYR19 # Has Readme
48+
- PYR16 # Has proper author
49+
50+
pep257:
51+
disable:
52+
- D203 # 1 blank line required before class docstring
53+
- D212 # Multi-line docstring summary should start at the first line
54+
- D213 # Multi-line docstring summary should start at the second line

.pycodestyle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pycodestyle]
2+
max-line-length = 200
3+
#count = False
4+
#ignore = E226,E302,E71
5+
statistics = True

0 commit comments

Comments
 (0)