Skip to content

Commit

Permalink
add a few more files
Browse files Browse the repository at this point in the history
Change-Id: I96db3b1d206d22b60b61e2c8447ff164d87ffa82
  • Loading branch information
cooljeanius committed Oct 19, 2024
1 parent 087c305 commit fe3201c
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2022 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

# This file helps editors auto-configure whitespace settings.
#
# See here for more information about the format and editor support:
#
# https://editorconfig.org/

root = true

[*]
end_of_line = lf
insert_final_newline = true
tab_width = 8

# Makefile
[{Makefile*,*.mk}]
indent_style = tab
indent_size = 8

# C/C++
[*.{c,h,cc}]
indent_style = tab
indent_size = 2

# Expect / TCL
[*.{exp,tcl}]
indent_style = tab
indent_size = 4

# Python
[*.py]
indent_style = space
indent_size = 4
25 changes: 25 additions & 0 deletions src/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black
types_or: [file]
files: 'gdb/.*\.py(\.in)?$'
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
types_or: [file]
# Note this one is only run on gdb/python, not (for now) the
# test suite.
files: 'gdb/python/.*\.py(\.in)?$'
args: [--config, gdb/setup.cfg]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
types_or: [file]
files: 'gdb/.*\.py(\.in)?$'

0 comments on commit fe3201c

Please sign in to comment.