-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
74 lines (65 loc) · 2 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
[tool.poetry]
name = "tailer"
version = "0.4.1"
description = "Python tail is a simple implementation of GNU tail and head."
authors = ["Mike Thornton <[email protected]>", "Giridhar Vijaykumar <[email protected]>"]
license = "MIT"
readme = "README.rst"
homepage = "http://github.com/six8/pytailer"
repository = "http://github.com/six8/pytailer"
classifiers = [
"Programming Language :: Python",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX",
"Topic :: Software Development :: Libraries :: Python Modules",
'Topic :: System :: Logging',
'Topic :: Text Processing',
"Topic :: System :: System Shells",
"Topic :: System :: Systems Administration",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
include = ["LICENSE"]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
pre-commit = "^3.3.2"
black = "^23.3.0"
autoflake = "^1.4"
rst-include = "^2.1.2.2"
poethepoet = "^0.20.0"
bandit = "^1.7.5"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
[tool.pylint.format]
max-line-length = "88"
[tool.poetry.scripts]
pytail = "tailer:main"
[tool.pytest.ini_options]
addopts = "--doctest-modules -v"
[tool.poe.executor]
type = "simple"
[tool.poe.tasks]
format = {shell = "autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports . && black ."}
lint.shell = """
status=0
echo '== black =='
black --check . || status=1
echo '== bandit =='
bandit --exclude '*/tests/*' --recursive . || status=1
exit $status
"""
# Generate readme
readme = "rst_include include ./_README.rst ./README.rst"
test = "pytest -vvv ./tailer"