Skip to content

Commit

Permalink
move config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Nov 14, 2021
1 parent d7423df commit 777230a
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 38 deletions.
37 changes: 0 additions & 37 deletions mypy.ini

This file was deleted.

46 changes: 45 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ vendoring = {version = "^0.3", python = "^3.8"}
pep517 = "^0.11.0"
black = {version = "^21.9b0", markers = "python_version >= '3.6.2' and python_version < '4.0' and implementation_name != 'pypy'"}
isort = {version = "^5.9.3", python = "^3.6.1"}
mypy = "^0.910"

[tool.black]
line-length = 88
Expand Down Expand Up @@ -84,6 +85,35 @@ filter_files = true
known_first_party = "poetry.core"
known_third_party = ["poetry.core._vendor"]

[tool.mypy]
python_version = "3.6"
check_untyped_defs = true
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
files = "poetry"

# The following whitelist is used to allow for incremental adoption
# of Mypy. Modules should be removed from this whitelist as and when
# their respective type errors have been addressed. No new modules
# should be added to this whitelist.
# see https://github.com/python-poetry/poetry/pull/4510.

[[tool.mypy.overrides]]
module = [
'poetry.core.factory.*',
'poetry.core.masonry.*',
'poetry.core.packages.*',
'poetry.core.poetry.*',
'poetry.core.pyproject.*',
'poetry.core.semver.*',
'poetry.core.spdx.*',
'poetry.core.vcs.*',
'poetry.core.version.*',
]
ignore_errors = true

[tool.vendoring]
destination = "poetry/core/_vendor/"
requirements = "poetry/core/_vendor/vendor.txt"
Expand Down

0 comments on commit 777230a

Please sign in to comment.