Skip to content

Commit 4a70269

Browse files
Add pre-commit config (#2)
1 parent cd3b95a commit 4a70269

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.pre-commit-config.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Install pre-commit hooks via
2+
# pre-commit install
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-ast
10+
- id: check-builtin-literals
11+
- id: check-case-conflict
12+
- id: check-json
13+
- id: check-toml
14+
- id: check-yaml
15+
args: [--allow-multiple-documents]
16+
- id: debug-statements
17+
- id: end-of-file-fixer
18+
- id: mixed-line-ending
19+
- id: trailing-whitespace
20+
21+
- repo: https://github.com/rbubley/mirrors-prettier
22+
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
23+
hooks:
24+
- id: prettier
25+
files: \.(css|md|yml|yaml)
26+
args: [--prose-wrap=preserve]
27+
28+
- repo: https://github.com/codespell-project/codespell
29+
rev: "63c8f8312b7559622c0d82815639671ae42132ac" # frozen: v2.4.1
30+
hooks:
31+
- id: codespell
32+
args:
33+
["-L", "recuse,nd,coo", "-w", "--skip=static/teams/bots-graphs.html"]
34+
35+
ci:
36+
autofix_prs: false
37+
autofix_commit_msg: "[pre-commit.ci 🤖] Apply code format tools to PR"
38+
autoupdate_schedule: quarterly

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# statistical-python.org
2-
Source for the Statistical Python Project homepage.
2+
3+
Source for the Statistical Python Project homepage.

0 commit comments

Comments
 (0)