This commit is contained in:
parent
e434e449aa
commit
999eeef8e9
|
@ -0,0 +1,29 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: debug-statements
|
||||
- id: name-tests-test
|
||||
- id: requirements-txt-fixer
|
||||
- id: check-executables-have-shebangs
|
||||
- id: check-docstring-first
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.3.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py310-plus]
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.12.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
- id: flake8
|
|
@ -0,0 +1,16 @@
|
|||
[tool.black]
|
||||
line-length = 120
|
||||
target-version = ['py37', 'py38']
|
||||
include = '\.pyi?$'
|
||||
exclude = '''
|
||||
/(
|
||||
| .eggs
|
||||
| .git
|
||||
| .mypy_cache
|
||||
| .tox
|
||||
| .venv
|
||||
| _build
|
||||
| build
|
||||
| dist
|
||||
)/
|
||||
'''
|
13
setup.cfg
13
setup.cfg
|
@ -32,6 +32,9 @@ package_dir = = src
|
|||
include_package_data = true
|
||||
python_requires = >= 3.7
|
||||
|
||||
[bdist_wheel]
|
||||
universal = True
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
||||
|
@ -43,3 +46,13 @@ console_scripts =
|
|||
testpaths = tests
|
||||
filterwarnings =
|
||||
error
|
||||
|
||||
[flake8]
|
||||
ignore = E501,E203
|
||||
exclude =
|
||||
.git,
|
||||
__pycache__,
|
||||
old,
|
||||
build,
|
||||
dist
|
||||
max-line-length = 120
|
||||
|
|
Loading…
Reference in New Issue