JJMC89 has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1070057?usp=email )

Change subject: migrate isort and mypy configs to pyproject.toml
......................................................................

migrate isort and mypy configs to pyproject.toml

Change-Id: Id222f02370836b50b86f270e15e0064715db0eab
---
D mypy.ini
M pyproject.toml
M tox.ini
3 files changed, 20 insertions(+), 27 deletions(-)

Approvals:
  JJMC89: Verified; Looks good to me, approved




diff --git a/mypy.ini b/mypy.ini
deleted file mode 100644
index a656812..0000000
--- a/mypy.ini
+++ /dev/null
@@ -1,15 +0,0 @@
-[mypy]
-ignore_missing_imports = true
-# should be set to false later
-implicit_optional = true
-# The following should be set to true as soon as possible; see
-# 
https://mypy.readthedocs.io/en/stable/existing_code.html?highlight=warn_unused_ignores#introduce-stricter-options
-warn_unused_ignores = false
-warn_redundant_casts = false
-
-check_untyped_defs = false
-
-disallow_any_generics = false
-
-disallow_incomplete_defs = false
-disallow_untyped_defs = false
diff --git a/pyproject.toml b/pyproject.toml
index dc216e9..24e9b90 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -117,7 +117,6 @@
 [project.scripts]
 pwb = "pywikibot.scripts.wrapper:run"

-
 [project.urls]
 Homepage = "https://www.mediawiki.org/wiki/Manual:Pywikibot";
 Documentation = "https://doc.wikimedia.org/pywikibot/stable/";
@@ -126,3 +125,23 @@
 Download = "https://www.pywikibot.org";
 Changelog = "https://doc.wikimedia.org/pywikibot/master/changelog.html";
 Tracker = "https://phabricator.wikimedia.org/tag/pywikibot/";
+
+
+[tool.isort]
+py_version = 37
+add_imports = ["from __future__ import annotations"]
+atomic = true
+ensure_newline_before_comments = true
+force_grid_wrap = 0
+include_trailing_comma = true
+lines_after_imports = 2
+multi_line_output = 3
+use_parentheses = true
+
+
+[tool.mypy]
+python_version = 3.7
+enable_error_code = [
+    "ignore-without-code",
+]
+ignore_missing_imports = true
diff --git a/tox.ini b/tox.ini
index c0cb020..8f69dff 100644
--- a/tox.ini
+++ b/tox.ini
@@ -240,17 +240,6 @@
 # pep8-naming
 classmethod-decorators = classmethod,classproperty

-[isort]
-py_version = 37
-add_imports = from __future__ import annotations
-atomic = true
-ensure_newline_before_comments = true
-force_grid_wrap = 0
-include_trailing_comma = true
-lines_after_imports = 2
-multi_line_output = 3
-use_parentheses = true
-
 [pycodestyle]
 exclude = .tox,.git,./*.egg,build,./scripts/i18n/*
 # see explanations above

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1070057?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: Id222f02370836b50b86f270e15e0064715db0eab
Gerrit-Change-Number: 1070057
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <jjmc89.wikime...@gmail.com>
Gerrit-Reviewer: JJMC89 <jjmc89.wikime...@gmail.com>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to