Skip to content

Commit 31c19f8

Browse files
committed
Update
1 parent 782eec7 commit 31c19f8

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.pre-commit-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: check-executables-have-shebangs
6+
- id: check-json
7+
- id: check-merge-conflict
8+
- id: check-shebang-scripts-are-executable
9+
- id: check-toml
10+
- id: check-yaml
11+
- id: double-quote-string-fixer
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
args: ['--fix=lf']
15+
- id: requirements-txt-fixer
16+
- id: trailing-whitespace
17+
- repo: https://github.com/myint/docformatter
18+
rev: v1.4
19+
hooks:
20+
- id: docformatter
21+
args: ['--in-place']
22+
- repo: https://github.com/pycqa/isort
23+
rev: 5.8.0
24+
hooks:
25+
- id: isort
26+
- repo: https://github.com/pre-commit/mirrors-mypy
27+
rev: v0.812
28+
hooks:
29+
- id: mypy
30+
args: ['--ignore-missing-imports']
31+
- repo: https://github.com/pre-commit/mirrors-yapf
32+
rev: v0.31.0
33+
hooks:
34+
- id: yapf
35+
args: ['--parallel', '--in-place', '--style={spaces_before_comment: 2}']

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 hysts
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)