public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: pyproject.toml: set pyright typeCheckingMode = "strict"
@ 2023-02-27 18:29 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-02-27 18:29 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9f353051dee5262914ea33785896c6df3978adf7

commit 9f353051dee5262914ea33785896c6df3978adf7
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Sun Feb 26 20:13:58 2023 -0500

    gdb: pyproject.toml: set pyright typeCheckingMode = "strict"
    
    While working on other projects, I found the pyright type checker very
    helpful when editing Python code.  I don't think I have to explain the
    advantages of type checking to a crowd used to C/C++.
    
    Setting typeCheckingMode to "strict" makes pyright flag a bit more type
    issues than the default of "basic".
    
    Change-Id: I38818ec59f7f73c2ab020cc9226286cdd485abc7
    Reviewed-By: Tom Tromey <tom@tromey.com>
    Reviewed-By: Andrew Burgess <aburgess@redhat.com>

Diff:
---
 gdb/pyproject.toml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/pyproject.toml b/gdb/pyproject.toml
index 58ed2f9d556..4469f1cd61d 100644
--- a/gdb/pyproject.toml
+++ b/gdb/pyproject.toml
@@ -1,2 +1,5 @@
 [tool.black]
 include = "\\.py(\\.in)?$"
+
+[tool.pyright]
+typeCheckingMode = "strict"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-27 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27 18:29 [binutils-gdb] gdb: pyproject.toml: set pyright typeCheckingMode = "strict" Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).