8000 add pre-commit for dev work from upstream · pythonthings/pyppeteer@1328d20 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1328d20

Browse files
committed
add pre-commit for dev work from upstream
1 parent 2c72b82 commit 1328d20

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-toml
9+
- id: check-builtin-literals
10+
- id: debug-statements
11+
- id: check-added-large-files
12+
- repo: https://github.com/asottile/seed-isort-config
13+
rev: v2.1.1
14+
hooks:
15+
- id: seed-isort-config
16+
# if we don't specify these the seeder will intermittently include
17+
# these as 'known third parties' which messes with our diffs
18+
args: ['--application-directories', './pyppeteer:./tests']
19+
- repo: https://github.com/timothycrosley/isort
20+
rev: 4.3.21
21+
hooks:
22+
- id: isort
23+
additional_dependencies: [toml]
24+
- repo: https://github.com/psf/black
25+
rev: stable
26+
hooks:
27+
- id: black
28+
language_version: python3

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ multi_line_output = 3
8484
include_trailing_comma = true
8585
force_grid_wrap = 0
8686
use_parentheses = true
87-
known_third_party = ["PIL", "aiohttp", "appdirs", "certifi", "diff_match_patch", "livereload", "networkx", "ordered_set", "pixelmatch", "pyee", "pyppeteer", "pytest", "syncer", "tests", "tqdm", "urllib3", "websockets"]
87+
known_third_party = ["appdirs", "livereload", "pyee", "pyppeteer", "syncer", "tornado", "tqdm", "urllib3", "websockets"]

0 commit comments

Comments
 (0)
0