This commit is contained in:
nico 2023-01-29 09:50:28 +01:00
parent e434e449aa
commit 999eeef8e9
Signed by: mightyBroccoli
GPG Key ID: 1F6495B44DABCE6E
4 changed files with 59 additions and 0 deletions

29
.pre-commit-config.yaml Normal file
View File

@ -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

16
pyproject.toml Normal file
View File

@ -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
)/
'''

View File

@ -32,6 +32,9 @@ package_dir = = src
include_package_data = true include_package_data = true
python_requires = >= 3.7 python_requires = >= 3.7
[bdist_wheel]
universal = True
[options.packages.find] [options.packages.find]
where = src where = src
@ -43,3 +46,13 @@ console_scripts =
testpaths = tests testpaths = tests
filterwarnings = filterwarnings =
error error
[flake8]
ignore = E501,E203
exclude =
.git,
__pycache__,
old,
build,
dist
max-line-length = 120

View File

@ -1,2 +1,3 @@
from setuptools import setup from setuptools import setup
setup() setup()