-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
73 lines (65 loc) · 1.97 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
[tool.poetry]
authors = ["long2ice <[email protected]>"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
description = "Calculate the cyclomatic complexity of the source code"
documentation = "https://github.com/long2ice/mccabe"
homepage = "https://github.com/long2ice/mccabe"
include = ["CHANGELOG.md", "LICENSE", "README.md", "mcc/language.so"]
keywords = ["cyclomatic", "complexity", "code"]
license = "Apache-2.0"
name = "mcc"
packages = [
{include = "mcc"},
]
readme = "README.md"
repository = "https://github.com/long2ice/mccabe.git"
version = "0.1.0"
[tool.poetry.dependencies]
click = "^8.0.3"
python = "^3.7"
tree-sitter = {git = "https://github.com/tree-sitter/py-tree-sitter.git"}
[tool.poetry.dev-dependencies]
# test
pytest = "6.2.5"
pytest-benchmark = "^3.4.1"
pytest-cov = "3.0.0"
pytest-mock = "3.6.1"
pytest-sugar = "0.9.4"
pytest-xdist = "2.4.0"
# lint
bandit = "^1.7.0"
black = "21.9b0"
isort = "5.9.3"
mypy = "0.910"
pyproject-flake8 = "^0.0.1-alpha.2"
[tool.poetry.build]
generate-setup-file = false
script = "build.py"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.7", "setuptools", "tree_sitter"]
[tool.poetry.scripts]
mcc = "mcc.cli:main"
[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39"]
[tool.mypy]
ignore_missing_imports = true
[tool.flake8]
ignore = "E501,W503"