Add pre-commit (#140)

* Add pre-commit config files

* Add linting test on github action
This commit is contained in:
Shubhank Saxena
2021-05-26 20:28:17 +05:30
committed by GitHub
parent 94b26a8781
commit 8f228d6844
6 changed files with 53 additions and 1 deletions

17
pyproject.toml Normal file
View File

@ -0,0 +1,17 @@
[tool.black]
line-length = 200
target-version = ['py36', 'py37', 'py38']
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.*
| \.git
| \.mypy_cache
| \.venv
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''