Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef0afaa

Browse files
add prettier to pre-commit hooks (#16)
* add prettier to pre-commit hooks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent cbcea19 commit ef0afaa

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/workflows/pypi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PyPI
33
on:
44
push:
55
tags:
6-
- '*.*.*'
6+
- "*.*.*"
77
jobs:
88
pypi:
99
name: Upload to PyPI

.pre-commit-config.yaml

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
repos:
2-
32
- repo: https://github.com/pre-commit/pre-commit-hooks
43
rev: v4.0.1
54
hooks:
6-
- id: check-yaml
7-
- id: end-of-file-fixer
8-
- id: trailing-whitespace
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
98

109
- repo: https://github.com/psf/black
1110
rev: 21.8b0
1211
hooks:
13-
- id: black
12+
- id: black
1413

1514
- repo: https://github.com/dfm/black_nbconvert
1615
rev: v0.3.0
1716
hooks:
18-
- id: black_nbconvert
17+
- id: black_nbconvert
1918

2019
- repo: https://github.com/kynan/nbstripout
2120
rev: 0.5.0
2221
hooks:
23-
- id: nbstripout
24-
25-
ci:
22+
- id: nbstripout
2623

27-
autofix_commit_msg: '[pre-commit.ci] automatic formatting'
28-
autofix_prs: true
29-
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
30-
autoupdate_schedule: weekly
31-
skip: []
32-
submodules: false
24+
- repo: https://github.com/pre-commit/mirrors-prettier
25+
rev: v2.4.1
26+
hooks:
27+
- id: prettier

0 commit comments

Comments
 (0)