Skip to content

Commit 5f3e942

Browse files
committed
Enable black tool to run as pre-commit hook
1 parent fc5c080 commit 5f3e942

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
default_language_version:
2+
python: python3.7
3+
fail_fast: true
4+
repos:
5+
- hooks:
6+
- id: black
7+
repo: https://github.com/ambv/black
8+
rev: stable

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"Programming Language :: Python :: Implementation :: CPython",
3434
],
3535
description="Low-level communication layer for PRAW 4+.",
36+
extras_require={"dev": ["pre-commit"]},
3637
install_requires=["requests >=2.6.0, <3.0"],
3738
keywords="praw reddit api",
3839
license="Simplified BSD License",

0 commit comments

Comments
 (0)