-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (115 loc) · 3.04 KB
/
pyproject.toml
File metadata and controls
128 lines (115 loc) · 3.04 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[tool.poetry]
name = "spam-analyzer"
version = "1.0.11"
description = "A simple email analyzer"
authors = ["Matteo Spanio <spanio@dei.unipd.it>"]
license = "GPLv3"
readme = "README.md"
packages = [
{include = "spamanalyzer", from = "src"},
{include = "spamanalyzer/py.typed", from = "src"}
]
homepage = "http://docs.spamanalyzer.tech/"
repository = "https://github.com/matteospanio/spam-analyzer"
keywords = ["spam", "spam-analyzer", "cybersecurity"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
include = ["*.yaml", "*.txt", "*/*.yaml", "*/*.txt", "conf/*"]
[tool.poetry.scripts]
spam-analyzer = "app.__main__:main"
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.31.0"
nltk = "^3.8.1"
PyYAML = "^6.0"
rich = "^13.4.2"
scikit-learn = "^1.1.2"
numpy = "^1.25.1"
mail-parser = "^3.15.0"
pandas = "^2.0.3"
beautifulsoup4 = "^4.12.2"
dnspython = "^2.4.0"
textblob = "^0.17.1"
click = "^8.1.6"
click-extra = "^4.6.3"
typing-extensions = "^4.9.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
yapf = "^0.40.1"
pylint = "^2.17.4"
pytest-cov = "^4.1.0"
pytest-xdist = "^3.3.1"
coveralls = "^3.3.1"
tomli = "^2.0.1"
pytest-asyncio = "^0.21.1"
pytest-mock = "^3.11.1"
isort = "^5.12.0"
pre-commit = "^3.3.3"
pyroma = "^4.2"
docformatter = "^1.7.5"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.3"
mkdocs-material = "^9.1.19"
mkdocs-git-revision-date-localized-plugin = "^1.2.0"
mkdocstrings = {version = "^0.20.0", extras = ["python"] }
mkdocs-jupyter = "^0.24.2"
[tool.pylint]
max-line-length = 88
disable = [
"C0103", # (invalid-name)
"C0114", # (missing-module-docstring)
"C0115", # (missing-class-docstring)
"C0116", # (missing-function-docstring)
"R0903", # (too-few-public-methods)
"R0913", # (too-many-arguments)
"W0105", # (pointless-string-statement)
]
[tool.yapf]
based_on_style = "pep8"
blank_line_before_nested_class_or_def = true
column_limit = 88
[tool.isort]
profile = "hug"
src_paths = ["src", "tests"]
[tool.docformatter]
resucrsive = true
wrap-summaries = 82
blank = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests"]
filterwarnings = [
"ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning",
]
[tool.coverage.run]
source = ["src"]
[tool.coverage.report]
show_missing = true
omit = [
"src/app/io.py",
"**/__init__.py",
"src/spamanalyzer/errors.py",
]
exclude_lines = [
"pragma: no cover",
"except OSError",
"def __repr__",
"def __str__",
"def __get_package_version",
"if self.debug",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"