SF.net SVN: docutils:[9831 ] trunk/docutils/.ruff. toml
aa-turner--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9831
http://sourceforge.net/p/docutils/code/9831
Author: aa-turner
Date: 2024-08-01 20:53:57 +0000 (Thu, 01 Aug 2024)
Log Message:
-----------
Enable the flake8-pytest linter in Ruff
Modified Paths:
--------------
trunk/docutils/.ruff.toml
Modified: trunk/docutils/.ruff.toml
===================================================================
--- trunk/docutils/.ruff.toml 2024-08-01 20:51:58 UTC (rev 9830)
+++ trunk/docutils/.ruff.toml 2024-08-01 20:53:57 UTC (rev 9831)
@@ -16,6 +16,7 @@
"LOG", # flake8-logging
"PGH", # pygrep-hooks
"PIE", # flake8-pie
+ "PT", # flake8-pytest
"W", # pycodestyle
]
ignore = [
@@ -25,6 +26,10 @@
# "If operators with different priorities are used, consider adding
# whitespace around the operators with the lowest priority(ies).
# Use your own judgment; …"
+
+ "PT009", # Use a regular assert instead of unittest-style
+ "PT027", # Use pytest.raises instead of unittest-style
+ # We still use unittest.
]
[lint.per-file-ignores]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
Docutils-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-checkins