This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
127 lines (115 loc) · 3.75 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
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
[tool.poetry]
name = "iometrics"
# Note tbump will bump `version` and also `iometrics/__init__.py`
# Do not change the version here but rather `tbump "0.0.5" --only-patch`
version = "0.0.8"
description = "Network and Disk I/O Stats Monitor"
authors = ["Leo Gallucci <[email protected]>"]
readme = "README.md"
repository = "https://github.com/elgalu/iometrics"
keywords = ["io", "network", "disk", "metrics", "pytorch-lightning"]
license = "Apache 2.0"
# https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation",
# TODO: support (test) also PyPy python implementation
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
# TODO: Check if it works in OSX
# "Operating System :: MacOS :: MacOS X",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Topic :: Utilities",
"Topic :: System :: Emulators",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Acceptance",
"Topic :: Software Development :: Testing :: Mocking",
"Typing :: Typed",
]
packages = [{ include = "iometrics", from = "." }]
[tool.poetry.urls]
Changelog = "https://github.com/elgalu/iometrics/blob/main/CHANGELOG.md"
Issues = "https://github.com/elgalu/iometrics/issues"
[tool.poetry.dependencies]
python = "^3.7"
psutil = "^5.8.0"
[tool.poetry.scripts]
iometrics = 'iometrics.cli:iometrics_cli_entrypoint'
[tool.poetry.dev-dependencies]
# https://github.com/PyCQA/pylint
pylint = "^2.8"
pytest = "^6.2"
pytest-cov = "^2.12"
pytest-html = "^2.1"
mypy = { git = "https://github.com/python/mypy.git", rev = "4c90aa42e6a74f127956124aec94f55dbc46a281" }
autopep8 = "^1.5"
invoke = "^1.5.0"
pre-commit = "^2.13"
flake8 = "^3.9"
pydocstyle = "^6.1.1"
black = { version = "^20.8b1", allow-prereleases = true }
# No `safety` pre-commit hook is available yet:
# https://github.com/pyupio/safety/issues/336
safety = "^1.10"
# Roll-up CHANGELOG.md with https://github.com/twisted/towncrier
towncrier = "^21.3.0"
# Bump software releases with https://github.com/dmerejkowsky/tbump
# See `tbump.toml`
tbump = { git = "https://github.com/dmerejkowsky/tbump.git", rev = "03988d5d2267ddd4a33b3c4196b05b7f24f0a0a4" }
# We need PyTorch-Lightning to run the Callback tests
torch = "^1.9.0"
pytorch_lightning = "^1.4.2"
[tool.pylint.'REPORTS']
msg-template = "{path}:{line}: [{msg_id}({symbol}),{obj}]{msg}"
reports = "no" # https://docs.sonarqube.org/latest/analysis/languages/python/#pylint
[tool.pylint.'FORMAT']
max-line-length = 155
[tool.pylint.'DESIGN']
# [R0902(too-many-instance-attributes),DiskMetrics]Too many instance attributes (9/8)
max-attributes = 9
[tool.pylint.'SIMILARITIES']
ignore-imports = true
[tool.pytest.ini_options]
junit_family = "legacy"
minversion = "6.0"
addopts = "-ra -q"
testpaths = ["tests"]
[tool.mypy]
# https://dokk.org/documentation/mypy/v0.471/config_file/#global-flags
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = false
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
[tool.black]
# https://black.readthedocs.io/en/stable/pyproject_toml.html#configuration-format
line-length = 120
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[build-system]
requires = ["poetry>=1.1.7"]
build-backend = "poetry.masonry.api"