From 04defbdb28c8c9c9e40ae91b7a4555313b6c7d4f Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 18 Jan 2025 09:00:33 +0000 Subject: [PATCH] Use more modern pylint-per-file-ignores syntax --- pyproject.toml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0b79167..088d47a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -232,17 +232,14 @@ disable = [ 'wrong-import-order', ] -# This format is described in the following issue: -# https://github.com/christopherpickering/pylint-per-file-ignores/issues/160 -# # We ignore invalid names because: # - We want to use generated module names, which may not be valid, but are never seen. # - We want to use global variables in documentation, which may not be uppercase. # - conf.py is a Sphinx configuration file which requires lowercase global variable names. -per-file-ignores = """ -docs/:invalid-name -doccmd_README_rst.*.py:invalid-name -""" +per-file-ignores = [ + "docs/:invalid-name", + "doccmd_README_rst.*.py:invalid-name", +] [tool.pylint.'FORMAT']