-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (66 loc) · 2.17 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pyproject-indirect-import-detector"
version = "0.1.2"
description = "CI tool to detect indirect import"
authors = ["keno <[email protected]>"]
license = "MIT"
packages = [
{from = "src", include = "pyproject_indirect_import_detector"},
]
readme = "README.md"
repository = "https://github.com/kenoss/pyproject-indirect-import-detector"
keywords = [
"python3",
"linter",
"styleguide",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries",
]
[tool.poetry.scripts]
pyproject-indirect-import-detector = "pyproject_indirect_import_detector.main:_main"
[tool.poetry.dependencies]
# Installable with python >= 3.6, but runtime requires >= 3.9. Because:
#
# - Old pythons lacks some libraries and methods. So, we want to use the latest python.
# - Poetry see this constraint and check compatibility with the packages' one.
# For example, consider the following situation: the package A declare its python dependency `python = "^3.6"`.
# Then, `poetry add pyproject-indirect-import-detector` fails if the below constrait is `python = "^3.9"`.
python = "^3.6"
result = "^0.6.0"
setuptools = "^56.0.0"
stdlib-list = "^0.8.0"
termcolor = "^1.1.0"
toml = "^0.10.2"
[tool.poetry.dev-dependencies]
Pillow = "^8.2.0"
PyGObject = "^3.40.1"
actfw-core = "^1.5.2"
pysen = {version = "^0.9.1", extras = ["lint"]}
pytest = "^5.2"
[tool.pysen.lint]
# TODO: https://github.com/kenoss/pyproject-indirect-import-detector/issues/1
enable_black = false
enable_flake8 = true
enable_isort = true
enable_mypy = true
mypy_preset = "strict"
line_length = 128
py_version = "py38"
[[tool.pysen.lint.mypy_targets]]
paths = ["src"]
[tool.pyproject-indirect-import-detector]
exclude_projects = ["dataclasses"]
exclude_modules = [
"dataclasses", # For test, corresponding "dataclasses" in `exclude_projects`.
"hoge", # For test; dummy module.
"a", # Ditto.
"b", # Ditto.
]