diff options
author | Tom Tromey <tromey@adacore.com> | 2024-04-02 12:04:21 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-04-04 06:43:39 -0600 |
commit | 16810e455feb26ef826a3ed876d6d7e6d24818b0 (patch) | |
tree | 981372c2cc20bc51b8001e1cc505de75d14b40ff /gdb | |
parent | b0ca740e8f361024d1c78cdf7432b4566dda4c7c (diff) | |
download | gdb-16810e455feb26ef826a3ed876d6d7e6d24818b0.zip gdb-16810e455feb26ef826a3ed876d6d7e6d24818b0.tar.gz gdb-16810e455feb26ef826a3ed876d6d7e6d24818b0.tar.bz2 |
Add flake8 and isort to .pre-commit-config.yaml
This adds flake8 and isort to .pre-commit-config.yaml. This way, they
will automatically be run on commit.
I chose the most recent available versions after verifying that they
don't cause any reports or changes in the current tree.
Internally at AdaCore, we also use a few flake8 plugins as well, so
perhaps that's another avenue for investigation.
v2: Also update the various file-selection clauses to pick up
gdb-gdb.py.in; include the isort change made to this file; and finally
add a comment about the exclusions from flake8.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdb-gdb.py.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdb-gdb.py.in b/gdb/gdb-gdb.py.in index 54db9b0..b5a7fa4 100644 --- a/gdb/gdb-gdb.py.in +++ b/gdb/gdb-gdb.py.in @@ -15,9 +15,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import gdb import os.path +import gdb + class TypeFlag: """A class that allows us to store a flag name, its short name, |