Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 09e273a

Browse files
author
Josh Sixsmith
committed
Initial commit of pyproject.toml and .pre-commit-config.yaml
1 parent 06dc332 commit 09e273a

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.4.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/psf/black
12+
rev: 19.3b0
13+
hooks:
14+
- id: black
15+
language_version: python3
16+
- repo: https://gitlab.com/pycqa/flake8
17+
rev: '' # pick a git hash / tag to point to
18+
hooks:
19+
- id: flake8

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
4+
[tool.black]
5+
line-length = 90
6+
target-version = ['py36', 'py37', 'py38']
7+
include = '\.pyi?$'
8+
exclude = '''
9+
10+
(
11+
/(
12+
\.eggs # exclude a few common directories in the
13+
| \.git # root of the project
14+
| \.hg
15+
| \.mypy_cache
16+
| \.tox
17+
| \.venv
18+
| _build
19+
| buck-out
20+
| build
21+
| dist
22+
)/
23+
| versioneer.py
24+
)
25+
'''

0 commit comments

Comments
 (0)