File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 5252 },
5353 {
5454 "matchPackageNames" : [
55- " shellcheck-py/shellcheck-py"
55+ " shellcheck-py/shellcheck-py" ,
56+ " scop/pre-commit-shfmt"
5657 ],
5758 "versioning" : " loose"
5859 },
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ jobs:
4444 fi
4545 - name : pre-commit (PEP 735)
4646 if : steps.detect.outputs.method == 'pep735'
47- run : uv run --no-sources --only-group pre-commit pre-commit run --all
47+ run : uv run --no-sources --only-group pre-commit pre-commit run --all --show-diff-on-failure
4848 env :
4949 RUFF_OUTPUT_FORMAT : github
5050 REUSE_OUTPUT_FORMAT : github
5151 - name : pre-commit (uvx)
5252 if : steps.detect.outputs.method == 'uvx'
53- run : uvx pre-commit run --all
53+ run : uvx pre-commit run --all --show-diff-on-failure
5454 env :
5555 RUFF_OUTPUT_FORMAT : github
5656 REUSE_OUTPUT_FORMAT : github
6262 run : uv pip install --system "$(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml)"
6363 - name : pre-commit (installed)
6464 if : steps.detect.outputs.method == 'requirements' || steps.detect.outputs.method == 'pyproject'
65- run : pre-commit run --all
65+ run : pre-commit run --all --show-diff-on-failure
6666 env :
6767 RUFF_OUTPUT_FORMAT : github
6868 REUSE_OUTPUT_FORMAT : github
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ repos:
3030 - id : ruff
3131 args : [--fix, --exit-non-zero-on-fix]
3232 - id : ruff-format
33- - repo : https://github.com/asottile/blacken-docs
34- rev : 1.19.1
35- hooks :
36- - id : blacken-docs
3733- repo : meta
3834 hooks :
3935 - id : check-hooks-apply
6258 rev : v1.7.7
6359 hooks :
6460 - id : actionlint
61+ - repo : https://github.com/adamchainz/blacken-docs
62+ rev : 1.19.1
63+ hooks :
64+ - id : blacken-docs
6565ci :
6666 autoupdate_schedule : quarterly
Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ profile = "black"
132132[tool .ruff ]
133133target-version = " py311"
134134
135+ [tool .ruff .format ]
136+ docstring-code-format = true
137+
135138[tool .ruff .lint ]
136139ignore = [
137140 " D10" , # TODO: we are missing many docstrings
You can’t perform that action at this time.
0 commit comments