diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bdf43b1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,74 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "loglens-cli" +version = "0.1.0" +description = "A CLI tool that parses, analyzes, and provides intelligent summaries of log files" +readme = "README.md" +license = {text = "MIT"} +requires-python = ">=3.9" +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "click>=8.1.7", + "colorlog>=6.8", + "orjson>=3.9.15", + "pyyaml>=6.0.1", + "rich>=13.7.0", + "python-dateutil>=2.8.2", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.4.0", + "pytest-cov>=4.1.0", + "ruff>=0.1.0", + "mypy>=1.0.0", + "black", + "isort", +] + +[project.scripts] +loglens = "loglens.cli.main:main_cli" + +[tool.setuptools.packages.find] +include = ["loglens*"] + +[tool.pytest.ini_options] +testpaths = ["tests"] +python_files = ["test_*.py"] +python_functions = ["test_*"] +addopts = "-v --tb=short" + +[tool.black] +line-length = 100 +target-version = ["py39"] + +[tool.isort] +profile = "black" +line_length = 100 + +[tool.mypy] +python_version = "3.9" +warn_return_any = true +warn_unused_configs = true +ignore_missing_imports = true + +[tool.ruff] +line-length = 100 +target-version = "py39" + +[tool.ruff.lint] +select = ["E", "F", "I", "UP", "W"] +ignore = ["E501"]