| # Copyright (C) 2021-2026 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/>. | |
| [tool.black] | |
| include = "\\.py(\\.in)?$" | |
| [tool.pyright] | |
| typeCheckingMode = "strict" | |
| [tool.isort] | |
| profile = "black" | |
| [tool.tclint] | |
| exclude = [ | |
| # TODO: | |
| "testsuite/boards", | |
| "testsuite/config", | |
| # IGNORE (document reason in trailing comment): | |
| "testsuite/lib/ton.tcl", # Imported. | |
| ] | |
| # A maximum line length of 80 is current policy, but it hasn't been too | |
| # strictly enforced. It's the most frequent and least harmful violation. | |
| # Ignore this for now. | |
| ignore = ["line-length"] | |
| extensions = ["exp", "tcl"] | |
| commands=["expect", "testsuite/tclint-plugin.py"] | |
| [tool.tclint.style] | |
| # Used by tclfmt. | |
| indent = "mixed,4,8" | |
| # Used by both tclint and tclfmt. Current policy is 80. | |
| line-length = 80 | |
| # Used by tclfmt. | |
| max-blank-lines = 1 | |
| # Used by tclfmt. False conflicts with emacs tcl mode. | |
| indent-namespace-eval = true | |
| # Used by tclfmt. | |
| spaces-in-braces = false | |
| [tool.codespell] | |
| skip = [ | |
| # Skip generated files. | |
| '*/configure', | |
| 'gdbsupport/Makefile.in', | |
| '*.dat', | |
| '*.eps', | |
| 'gdb/features/*.c', | |
| 'gdb/ada-casefold.h', | |
| 'gdb/copying.c', | |
| 'gdb/gdbarch-gen.h', | |
| 'gdb/gdbarch-gen.c', | |
| 'gdb/target-delegates-gen.c', | |
| 'gdb/aclocal.m4', | |
| 'gdbserver/aclocal.m4', | |
| 'gdbsupport/aclocal.m4', | |
| # Skip codespell files containing typos. | |
| 'gdb/contrib/codespell-dictionary.txt', | |
| # TODO: | |
| # codespell:ignore-begin. Ignore slite and endianity. | |
| 'gdb/testsuite/config/slite.exp', | |
| 'gdb/testsuite/gdb.ada/pkd_arr_elem/failure.adb', | |
| 'gdb/testsuite/gdb.ada/str_ref_cmp.exp', | |
| 'gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.c', | |
| 'gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.S', | |
| 'gdb/testsuite/gdb.arch/amd64-invalid-stack-top.c', | |
| 'gdb/testsuite/gdb.arch/pa64-nullify.s', | |
| 'gdb/testsuite/gdb.arch/powerpc-altivec.exp', | |
| 'gdb/testsuite/gdb.arch/powerpc-altivec.s', | |
| 'gdb/testsuite/gdb.arch/s390-multiarch.exp', | |
| 'gdb/testsuite/gdb.arch/s390-tdbregs.exp', | |
| 'gdb/testsuite/gdb.asm/bfin.inc', | |
| 'gdb/testsuite/gdb.asm/pa64.inc', | |
| 'gdb/testsuite/gdb.base/alias.exp', | |
| 'gdb/testsuite/gdb.base/call-sc.c', | |
| 'gdb/testsuite/gdb.base/call-sc.exp', | |
| 'gdb/testsuite/gdb.base/completion.exp', | |
| 'gdb/testsuite/gdb.base/dump.c', | |
| 'gdb/testsuite/gdb.base/dump.exp', | |
| 'gdb/testsuite/gdb.base/endianity.exp', | |
| 'gdb/testsuite/gdb.base/ending-run.exp', | |
| 'gdb/testsuite/gdb.base/filename-completion.exp', | |
| 'gdb/testsuite/gdb.base/options.exp', | |
| 'gdb/testsuite/gdb.base/reggroups.exp', | |
| 'gdb/testsuite/gdb.base/settings.exp', | |
| 'gdb/testsuite/gdb.base/so-impl-ld.exp', | |
| 'gdb/testsuite/gdb.base/solib1.c', | |
| 'gdb/testsuite/gdb.base/stap-probe.exp', | |
| 'gdb/testsuite/gdb.base/structs.c', | |
| 'gdb/testsuite/gdb.base/watchpoint-unaligned.exp', | |
| 'gdb/testsuite/gdb.btrace/event-tracing-gap.c', | |
| 'gdb/testsuite/gdb.compile/compile-cplus-member.cc', | |
| 'gdb/testsuite/gdb.compile/compile-cplus-member.exp', | |
| 'gdb/testsuite/gdb.cp/anon-ns.exp', | |
| 'gdb/testsuite/gdb.cp/cpcompletion.exp', | |
| 'gdb/testsuite/gdb.cp/koenig.cc', | |
| 'gdb/testsuite/gdb.cp/koenig.exp', | |
| 'gdb/testsuite/gdb.cp/namespace.exp', | |
| 'gdb/testsuite/gdb.cp/static-method.exp', | |
| 'gdb/testsuite/gdb.cp/virtfunc.exp', | |
| 'gdb/testsuite/gdb.disasm/h8300s.exp', | |
| 'gdb/testsuite/gdb.disasm/h8300s.s', | |
| 'gdb/testsuite/gdb.disasm/t06_ari2.exp', | |
| 'gdb/testsuite/gdb.disasm/t06_ari2.s', | |
| 'gdb/testsuite/gdb.disasm/t11_logs.exp', | |
| 'gdb/testsuite/gdb.disasm/t11_logs.s', | |
| 'gdb/testsuite/gdb.dlang/demangle.exp', | |
| 'gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.c', | |
| 'gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.c', | |
| 'gdb/testsuite/gdb.fortran/class-allocatable-array.f90', | |
| 'gdb/testsuite/gdb.fortran/oop_extend_type.exp', | |
| 'gdb/testsuite/gdb.fortran/oop_extend_type.f90', | |
| 'gdb/testsuite/gdb.fortran/ptype-on-functions.f90', | |
| 'gdb/testsuite/gdb.linespec/cpls-ops.exp', | |
| 'gdb/testsuite/gdb.python/py-finish-breakpoint-inline.c', | |
| 'gdb/testsuite/gdb.python/py-format-string.exp', | |
| 'gdb/testsuite/gdb.python/py-unwind-inline.c', | |
| 'gdb/testsuite/gdb.threads/thread-find.exp', | |
| 'gdb/testsuite/gdb.trace/unavailable-dwarf-piece.c', | |
| 'gdb/testsuite/lib/gdb.exp', | |
| 'gdb/testsuite/lib/gdb-utils.exp', | |
| 'gdb/testsuite/lib/rust-support.exp' | |
| # codespell:ignore-end | |
| ] | |
| ignore-words = 'gdb/contrib/codespell-ignore-words.txt' | |
| dictionary = 'gdb/contrib/codespell-dictionary.txt,-' | |
| # Ignore all URLs. | |
| uri-ignore-words-list = '*' | |
| # How to ignore blocks of code. | |
| ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end' | |
| # Add 1 (disable warnings about wrong encoding) in addition to the default | |
| # 2+32 to skip warnings about iso-8859-1 encoded files. | |
| quiet-level = 35 # 1+2+32 | |
| # For regex we currently use the default value, which since v2.2.6 corresponds | |
| # to: regex = '''[A-Za-z0-9_'’-]+''' . | |
| # | |
| # Dropping the underscore or dash exposes us to more true and false positives. | |
| # It remains to be seen whether that's a good tradeoff. | |
| # | |
| # A related issue ( https://github.com/codespell-project/codespell/issues/1508 | |
| # ) is the fact that using a non-default regex is not compatible with -w, which | |
| # is a convenient way to fix codespell errors. |