jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1239533?usp=email )

Change subject: Only skip pwb.py from adding future annotations.
......................................................................

Only skip pwb.py from adding future annotations.

The pwb.py wrapper script is the entry point and also checks
which Python releases are supported. Future annotations were
introduced in Python 3.7, so we keep the wrapper backward
compatible for older Pythons.

Bug: T416667
Change-Id: Ibef78a5a4cec55c6b96e174e2ea4d78cd91ad823
---
M .pre-commit-config.yaml
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c0dd7ed..abf6b10 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -93,10 +93,10 @@
         name: isort
         args:
           - -a from __future__ import annotations
-        exclude: ^(pwb|pywikibot/config)\.py$
+        exclude: ^pwb\.py$
       - id: isort
         name: isort (skip future annotations)
-        files: ^(pwb|pywikibot/config)\.py$
+        files: ^pwb\.py$
   - repo: https://github.com/jshwi/docsig
     rev: v0.78.0
     hooks:

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1239533?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ibef78a5a4cec55c6b96e174e2ea4d78cd91ad823
Gerrit-Change-Number: 1239533
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to