Skip to content

Commit e63f28d

Browse files
committed
Added pre-commit and a basic config containing black+its config
1 parent 1e32e83 commit e63f28d

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.pre-commit-config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.3.0
4+
hooks:
5+
- id: check-ast
6+
- id: check-builtin-literals
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
10+
- repo: https://github.com/python/black
11+
rev: 20.8b1
12+
hooks:
13+
- id: black
14+
language_version: python3

pyproject.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tool.black]
2+
line-length = 79
3+
target-version = ['py27', 'py35', 'py36', 'py37', 'py38', 'py39']
4+
exclude = '''
5+
/(
6+
\.eggs
7+
| \.git
8+
| \.hg
9+
| \.mypy_cache
10+
| \.tox
11+
| \.venv
12+
| _build
13+
| buck-out
14+
| build
15+
| dist
16+
)/
17+
'''

requirements_dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ six==1.15.0
88
pytest
99
pytest-cov
1010
coverage
11+
pre-commit
1112
flake8
1213

1314
#deployment

0 commit comments

Comments
 (0)