-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (32 loc) · 1.03 KB
/
.pre-commit-config.yaml
File metadata and controls
35 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# サンプルで生成されるもの (pre-commit sample-config > .pre-commit-config.yaml)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, main]
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Python 自動フォーマッター
- repo: https://github.com/ambv/black
rev: 23.1.0
hooks:
- id: black
- id: black-jupyter
language_version: python3
# import 並び替え
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"] # black との競合回避 (他には .isort.cfg にて [tools.isort] profile="black" とする方法もある)
# Python 静的解析ツール
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8