Skip to content

Commit 9cf1692

Browse files
committed
Add stickler and black config files
1 parent 80019f7 commit 9cf1692

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.stickler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
linters:
2+
flake8:
3+
python: 3
4+
black:
5+
config: ./pyproject.toml
6+
fixer: true:
7+
8+
files:
9+
ignore:
10+
- 'src/generated/*'
11+
12+
fixers:
13+
enable: true

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tool.black]
2+
line-length = 88
3+
target-version = ['py36', 'py37', 'py38']
4+
include = '\.pyi?$'
5+
exclude = '''
6+
/(
7+
\.eggs
8+
| \.git
9+
| \.hg
10+
| \.mypy_cache
11+
| \.tox
12+
| \.venv
13+
| _build
14+
| buck-out
15+
| build
16+
| dist
17+
)/
18+
'''

0 commit comments

Comments
 (0)