Skip to content

Commit

Permalink
migrate isort and mypy configs to pyproject.toml
Browse files Browse the repository at this point in the history
Change-Id: Id222f02370836b50b86f270e15e0064715db0eab
  • Loading branch information
JJMC89 committed Sep 2, 2024
1 parent 104a574 commit 3820eeb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
15 changes: 0 additions & 15 deletions mypy.ini

This file was deleted.

21 changes: 20 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ dynamic = [
[project.scripts]
pwb = "pywikibot.scripts.wrapper:run"


[project.urls]
Homepage = "https://www.mediawiki.org/wiki/Manual:Pywikibot"
Documentation = "https://doc.wikimedia.org/pywikibot/stable/"
Expand All @@ -126,3 +125,23 @@ Repository = "https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/"
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
11 changes: 0 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,6 @@ ignore_regex=:keyword
# 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
Expand Down

0 comments on commit 3820eeb

Please sign in to comment.