summaryrefslogtreecommitdiff
path: root/.editorconfig
blob: f555192259beb625b9127617171499a098890cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# .editorconfig - How files in sbc-harness should be formatted
#
# Copyright (C) 2024-2025  Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

root = true

[*]
# Custom (sbc-harness) options for scripting
_mode = unknown
# Standard (editorconfig.org) options
charset = utf-8
end_of_line = lf
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

# By well-known name (KiCad) ###################################################

# Project

[*.kicad_pro]
_mode = kicad-project
indent_style = space
indent_size = 2

# Symbols / Schematics

[*.kicad_sym]
_mode = kicad-symbol-lib
indent_style = tab

[*.kicad_sch]
_mode = kicad-schematic
indent_style = tab

[sym-lib-table]
_mode = kicad-symbol-lib-table
indent_style = space
indent_size = 2

# Footprints / PCBs

[*.kicad_mod]
_mode = kicad-footprint
indent_style = tab

[*.kicad_pcb]
_mode = kicad-pcb
indent_style = tab

[fp-lib-table]
_mode = kicad-footprint-lib-table
indent_style = space
indent_size = 2

# By well-known name (other) ###################################################

[GNUmakefile]
_mode = make

[*.md]
_mode = markdown

[*.py]
_mode = python3
indent_style = space
indent_size = 4

[*.pyi]
_mode = python3-type-stubs
indent_style = space
indent_size = 4

[requirements.txt]
_mode = pip

[{.editorconfig,.gitmodules,.pylintrc}]
_mode = ini

[.gitignore]
_mode = gitignore

# By specific filename #########################################################

[build-aux/lint-src]
_mode = bash

[build-aux/{csv2xls,jlcpcb-bom-tool,kicad-sym-{extract,cat},kicad-rp2040-check}]
_mode = python3
indent_style = space
indent_size = 4