From e76d22822d4346d933b760ab1da18d671b37f573 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Mon, 26 Feb 2024 16:02:34 -0800 Subject: [PATCH] gnulib-tool.py: Add configuration files for Python tools. * pygnulib/.pylintrc: New file, used by pylintrc. * pygnulib/setup.cfg: New file, currently only used for pycodestyle options. --- ChangeLog | 7 +++++++ pygnulib/.pylintrc | 8 ++++++++ pygnulib/setup.cfg | 10 ++++++++++ 3 files changed, 25 insertions(+) create mode 100644 pygnulib/.pylintrc create mode 100644 pygnulib/setup.cfg diff --git a/ChangeLog b/ChangeLog index 4553fd5ae5..17ad488893 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-02-26 Collin Funk + + gnulib-tool.py: Add configuration files for Python tools. + * pygnulib/.pylintrc: New file, used by pylintrc. + * pygnulib/setup.cfg: New file, currently only used for pycodestyle + options. + 2024-02-26 Collin Funk gnulib-tool.py: Fix undefined variable access. diff --git a/pygnulib/.pylintrc b/pygnulib/.pylintrc new file mode 100644 index 0000000000..7c4c1a338c --- /dev/null +++ b/pygnulib/.pylintrc @@ -0,0 +1,8 @@ +# .pylintrc + +[MESSAGES CONTROL] +disable=C0103,C0114,C0121,C0209,C0301,C0302,R0902,R0912,R0913,R0914,R0915,R1705,R1702,R1720 + +# Local Variables: +# mode: conf +# End: diff --git a/pygnulib/setup.cfg b/pygnulib/setup.cfg new file mode 100644 index 0000000000..5d4a17171a --- /dev/null +++ b/pygnulib/setup.cfg @@ -0,0 +1,10 @@ +# setup.cfg + +[pycodestyle] +ignore = E265,W503,E241,E711,E712,E201,E202,E221 +max-line-length = 136 +statistics = True + +# Local Variables: +# mode: conf +# End: -- 2.39.5