-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
97 lines (81 loc) · 2.32 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "raincoat"
version = "0.0.0"
description = "Raincoat has you covered when you cannot stay DRY. Linter for copy-pasted code."
authors = ["Joachim Jablon <[email protected]>"]
license = "MIT License"
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
]
keywords = ["linter", "copy-paste"]
homepage = "https://raincoat.readthedocs.io/"
repository = "https://github.com/ewjoachim/raincoat"
documentation = "https://raincoat.readthedocs.io/"
[tool.poetry.scripts]
raincoat = 'raincoat.cli:main'
[tool.poetry.plugins."raincoat.match"]
pypi = "raincoat.match.pypi:PyPIMatch"
django = "raincoat.match.django:DjangoMatch"
pygithub = "raincoat.match.pygithub:PyGithubMatch"
[tool.poetry.dependencies]
python = "^3.8"
asttokens = "*"
click = "*"
colorama = "*"
requests = "*"
importlib-metadata = { version = "*", python = "<3.10" }
typing-extensions = "*"
packaging = "^24.0"
[tool.poetry.group.dev.dependencies]
black = "*"
isort = "*"
flake8 = "*"
mypy = "*"
[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-mock = "*"
pytest-cov = "*"
pytest-click = "*"
[tool.poetry.group.docs.dependencies]
doc8 = "*"
sphinx = "*"
sphinx_autodoc_typehints = "*"
sphinxcontrib-programoutput = "*"
[tool.poetry.group.types.dependencies]
types-colorama = "^0.4.15"
types-requests = "^2.28.11.2"
types-click = "^7.1.8"
[tool.poetry-dynamic-versioning]
enable = true
pattern = '(?P<base>\d+\.\d+\.\d+)'
[tool.isort]
profile = "black"
known_first_party = "raincoat"
add_imports = "__future__.annotations"
[tool.doc8]
max-line-length = 88
ignore-path = "docs/_build"
[tool.pytest.ini_options]
addopts = """
--cov-report term-missing --cov-branch --cov-report html --cov-report term
--cov=raincoat -vv --strict-markers -rfE --ignore=raincoat/_acceptance_test.py
"""
testpaths = ["tests/unit", "tests/integration", "tests/acceptance"]
[tool.mypy]
no_implicit_optional = true
[tool.coverage.run]
omit = ["raincoat/_acceptance_test.py"]
relative_files = true
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"coverage: exclude",
"if TYPE_CHECKING:",
"^ +\\.\\.\\.$",
]