forked from snok/flake8-type-checking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (69 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
75
76
77
78
79
[tool.poetry]
name = 'flake8-type-checking'
version = '1.0.4'
description = 'A flake8 plugin for managing type-checking imports & forward references'
homepage = 'https://github.com/snok'
repository = 'https://github.com/sondrelg/flake8-type-checking'
authors = ['Sondre Lillebø Gundersen <[email protected]>']
license = 'BSD-3-Clause'
readme = 'README.md'
keywords = ['flake8', 'plugin', 'linting', 'type hint', 'typing', 'imports']
include = ['CHANGELOG.md']
packages = [{ include = 'flake8_type_checking' }]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Environment :: Console',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Typing :: Typed',
]
[tool.poetry.urls]
"Changelog" = "https://github.com/sondrelg/flake8-type-checking/blob/master/CHANGELOG.md"
[tool.poetry.dependencies]
python = '^3.8'
flake8 = '*'
[tool.poetry.dev-dependencies]
pytest = '^6.2.2'
ipython = '^7.20.0'
coverage = '^5.4'
pytest-cov = '^2.11.1'
pre-commit = "^2.11.1"
pytest-flake8dir = "^2.3.1"
[tool.poetry.plugins]
[tool.poetry.plugins.'flake8.extension']
TCH = 'flake8_type_checking.plugin:Plugin'
[build-system]
requires = ['poetry-core>=1.0.0']
build-backend = 'poetry.core.masonry.api'
[tool.coverage.run]
source = ['flake8_type_checking/*']
omit = ['flake8_type_checking/types.py']
branch = false
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
'if TYPE_CHECKING:',
'mgr.extend_default_ignore',
'from importlib_metadata import version',
'except possible_local_errors:',
]
[tool.black]
line-length = 120
include = '\.pyi?$'
skip-string-normalization = true
[tool.isort]
profile = 'black'
multi_line_output = 3
include_trailing_comma = true
line_length = 120
known_third_party = ['flake8']
known_first_party = ['flake8_typing_imports']
[tool.pytest.ini_options]
addopts = ['--cov=flake8_type_checking','--cov-report', 'term-missing']