Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
/yumex-dnf-oldPublic archive

Commitf3f1274

Browse files
committed
add support for pre-commit framework
run flake8 & black as git pre-commit hooks
1 parent9be0a22 commitf3f1274

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
default_stages:[commit, push]
2+
default_language_version:
3+
python:python3.10
4+
repos:
5+
-repo:https://github.com/psf/black
6+
rev:21.8b0
7+
hooks:
8+
-id:black
9+
args:[
10+
--line-length=88,
11+
src/
12+
]
13+
exclude:^(tools/|docs/)
14+
types:['python']
15+
-repo:https://github.com/PyCQA/flake8
16+
rev:3.8.2
17+
hooks:
18+
-id:flake8
19+
args:[
20+
--max-line-length=88,
21+
src/
22+
]
23+
exclude:^(tools/|docs/)
24+
types:['python']

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp