forked from ansible/metrics-utility
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (92 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
103 lines (92 loc) · 2.7 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
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[project]
name = "metrics-utility"
dynamic = ["version"] # from setup.cfg
description = "A metrics utility for Ansible"
dependencies = [
"boto3==1.35.96",
"botocore==1.35.96",
"distro==1.9.0",
"django==5.2.7",
"kubernetes>=33.1.0",
"openpyxl==3.1.2",
"pandas>=2.2.3",
"psycopg==3.3.0",
"requests==2.32.5",
"segment-analytics-python>=2.3.4",
"setuptools==80.9.0",
]
requires-python = ">=3.12"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE.md"]
authors = [
{name = "Red Hat", email = "info@ansible.com"},
]
keywords = ["ansible", "metrics"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Systems Administration",
"Topic :: System :: Monitoring",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[project.scripts]
metrics-utility = "metrics_utility:manage"
[project.urls]
Repository = "https://github.com/ansible/metrics-utility.git"
Issues = "https://github.com/ansible/metrics-utility/issues"
Changelog = "https://github.com/ansible/metrics-utility/blob/devel/CHANGELOG.md"
[dependency-groups]
dev = [
"django-ansible-base>=2025.1.3",
"pre-commit>=4.0.1",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest>=8.3.4",
"ruff>=0.9.2",
]
# Do not uncomment the line below. We need to be able to override the version via a file, and this
# causes the "version" key in setup.cfg to be ignored.
# [tool.setuptools_scm]
[tool.setuptools]
# Include and exclude directories for the final package
packages = {find = {include = ["metrics_utility*"], exclude = ["tools*", "workers*", "sql*", "out*", "docs*", "mock_awx*"]}}
[tool.setuptools.package-data]
# Include only necessary package data
"*" = ["*.json", "*.sql", "*.txt"]
[tool.ruff]
# Allow longer lines than ruff's default 88.
line-length = 150
# PEP 8 standard
indent-width = 4
[tool.ruff.format]
# Normalize double quotes to single quotes
quote-style = "single"
# No tabs, spaces only
indent-style = "space"
[tool.ruff.lint]
extend-select = [
# Essential PEP 8 errors (indentation, syntax)
"E",
# PEP 8 warnings (whitespace, line breaks)
"W",
# PEP 8 naming conventions
# "N",
# Python syntax upgrades
# "UP",
# Sort imports
"I",
]
[tool.ruff.lint.isort]
# Separate direct imports from 'from' imports
lines-between-types = 1
# Use a single line after each import block
lines-after-imports = 2