-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (70 loc) · 2.76 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
75
76
77
78
79
80
81
82
83
[tool.poetry]
authors = ["DetachHead <[email protected]>"]
description = "a pylint plugin to enforce restrictions on imports within your project, similar to nx's enforce-module-boundaries eslint plugin "
name = "pylint_module_boundaries"
version = "1.3.1"
readme = "README.md"
repository = "https://github.com/detachhead/pylint-module-boundaries"
[tool.poetry.dependencies]
python = "^3.11"
pylint = ">=2 <4"
[tool.poetry.dev-dependencies]
black = "^23"
flake8 = "^6"
basedmypy = "^1.7.0rc1"
pytest = "^7"
isort = "^5.12.0"
pylint = ">=3"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.1.0b2"]
[tool.flake8]
select = "E,F,W"
[tool.isort]
profile = "black"
multi_line_output = 3
combine_as_imports = true
[tool.black]
target-version = ["py311"]
skip-magic-trailing-comma = true
preview = true
[tool.pylint.MASTER]
fail-on = "I"
[tool.pylint."MESSAGE CONTROL"]
disable = [
"missing-function-docstring",
"missing-module-docstring",
"missing-class-docstring",
"fixme",
"invalid-name", # https://github.com/PyCQA/pylint/issues/3401
"duplicate-code", # https://github.com/PyCQA/pylint/issues/214
"useless-import-alias", # required when using no-implicit-reexport in mypy
"too-few-public-methods", # didn't ask + ratio
"too-many-instance-attributes", # who cares
"too-many-locals", # who cares
"too-many-statements", # who cares
"too-many-branches", # who cares
"too-many-nested-blocks", # who cares
"unused-import", # false negatives + handled by flake8
"inherit-non-class", # handled by mypy, false positive on ReifiedGeneric
"isinstance-second-argument-not-valid-type", # false positive on Never type, handled by mypy
"unsubscriptable-object", # false positive + handled by mypy
"no-name-in-module", # why is this linter so stupid
"no-value-for-parameter", # handled by mypy
"no-member", # handled by mypy
"too-many-function-args", # handled by mypy
"unexpected-keyword-arg", # handled by mypy
"abstract-class-instantiated", # handled by mypy
]
enable = ["useless-suppression", "deprecated-pragma"]
[tool.pylint.FORMAT]
max-line-length = 200
[tool.pytest.ini_options]
addopts = "--import-mode=importlib"
xfail_strict = true
[tool.mypy]
allow_redefinition = true
default_return = true
[[tool.mypy.overrides]]
module = ["pylint.*", "astroid.*"]
ignore_missing_py_typed = true