Skip to content

Commit 736426a

Browse files
authored
Create .pre-commit-config.yaml
1 parent e9316df commit 736426a

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.pre-commit-config.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: requirements-txt-fixer
6+
name: Requirements
7+
types: [file]
8+
- id: debug-statements
9+
name: Debugging
10+
language: python
11+
types: [file, python]
12+
- id: trailing-whitespace
13+
name: Trailing Whitespace
14+
language: python
15+
types: [file]
16+
- id: end-of-file-fixer
17+
name: EOF Newlines
18+
language: python
19+
types: [file]
20+
- id: check-yaml
21+
name: YAML Structure
22+
language: python
23+
- id: check-toml
24+
name: TOML Structure
25+
- id: check-merge-conflict
26+
name: Merge Conflicts
27+
- repo: https://github.com/psf/black
28+
rev: 21.12b0
29+
hooks:
30+
- id: black
31+
name: Black Formatting
32+
language: python
33+
types: [file, python]
34+
args: [--line-length=100]
35+
- repo: https://github.com/PyCQA/flake8
36+
rev: 4.0.1
37+
hooks:
38+
- id: flake8
39+
name: flake8 Formatting
40+
language: python
41+
types: [file, python]
42+
args: [--max-line-length=100, --ignore=E203 E501 E402 W503 W504]
43+
- repo: https://github.com/pycqa/isort
44+
rev: 5.10.1
45+
hooks:
46+
- id: isort
47+
name: isort Formatting
48+
language: python
49+
types: [file, python]

0 commit comments

Comments
 (0)