SF.net SVN: docutils:[9870 ] trunk/docutils

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9870
          http://sourceforge.net/p/docutils/code/9870
Author:   aa-turner
Date:     2024-08-09 04:51:55 +0000 (Fri, 09 Aug 2024)
Log Message:
-----------
Fix Ruff

Modified Paths:
--------------
    trunk/docutils/.ruff.toml
    trunk/docutils/docutils/parsers/rst/directives/admonitions.py
    trunk/docutils/test/test_io.py

Modified: trunk/docutils/.ruff.toml
===================================================================
--- trunk/docutils/.ruff.toml	2024-08-08 21:03:15 UTC (rev 9869)
+++ trunk/docutils/.ruff.toml	2024-08-09 04:51:55 UTC (rev 9870)
@@ -32,6 +32,7 @@
 ]
 ignore = [
     "E226",  # missing whitespace around arithmetic operator
+    "E227",  # "missing whitespace around bitwise or shift operator"
     "E228",  # missing whitespace around modulo operator
     # not generally frowned on by PEP 8:
     # "If operators with different priorities are used, consider adding

Modified: trunk/docutils/docutils/parsers/rst/directives/admonitions.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/admonitions.py	2024-08-08 21:03:15 UTC (rev 9869)
+++ trunk/docutils/docutils/parsers/rst/directives/admonitions.py	2024-08-09 04:51:55 UTC (rev 9870)
@@ -96,6 +96,6 @@
     node_class = nodes.tip
 
 
-class Warning(BaseAdmonition):  # NoQA: A001 (overwrite builtin "Warning")
+class Warning(BaseAdmonition):  # NoQA: A001 (builtin name)
 
     node_class = nodes.warning

Modified: trunk/docutils/test/test_io.py
===================================================================
--- trunk/docutils/test/test_io.py	2024-08-08 21:03:15 UTC (rev 9869)
+++ trunk/docutils/test/test_io.py	2024-08-09 04:51:55 UTC (rev 9870)
@@ -31,7 +31,7 @@
     SUPPRESS_ENCODING_WARNING = sys.flags.warn_default_encoding
 else:
     SUPPRESS_ENCODING_WARNING = False
-    EncodingWarning = UnicodeWarning
+    EncodingWarning = UnicodeWarning  # NoQA: A001 (builtin name)
 
 # DATA_ROOT is ./test/data/ from the docutils root
 DATA_ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.