Skip to content

Commit 78892e5

Browse files
committed
chore: Sync with WeblateOrg/meta
1 parent 76cc6b9 commit 78892e5

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.editorconfig

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright © Michal Čihař <michal@weblate.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# This file is maintained in https://github.com/WeblateOrg/meta/
6+
7+
root = true
8+
9+
[*]
10+
indent_style = space
11+
indent_size = 2
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true
16+
spaces_around_operators = true
17+
18+
[*.bat]
19+
end_of_line = crlf
20+
21+
[*.html]
22+
indent_size = 2
23+
24+
[*.py]
25+
indent_size = 4
26+
27+
[*.rst]
28+
indent_size = 3
29+
30+
[*.js]
31+
quote_type = double
32+
33+
[*.{markdown,md}]
34+
trim_trailing_whitespace = false
35+
36+
[[shell]]
37+
indent_style = space
38+
indent_size = 4
39+
space_redirects = true
40+
simplify = true

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@ repos:
5454
rev: v3.11.0-1
5555
hooks:
5656
- id: shfmt
57+
- repo: https://github.com/adamchainz/blacken-docs
58+
rev: 1.19.1
59+
hooks:
60+
- id: blacken-docs
5761
ci:
5862
autoupdate_schedule: quarterly

0 commit comments

Comments
 (0)