[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "Pygments-tldr"
dynamic = ["version"]
requires-python = ">=3.8"
license = {text = "BSD-2-Clause"}
authors = [
  {name = "Chris Simoes", email = "csimoes1@yahoo.com"}
]
maintainers = [
    {name = "Chris Simoes", email = "csimoes1@yahoo.com"}
]
description = "Pygments-tldr is a fork of pygments with a formatter to extract function signatures"
# For PyPI, use a shorter description than README.rst.
readme = {file = "description.rst", content-type = "text/x-rst"}
keywords = ["syntax highlighting"]
classifiers = [
    "Development Status :: 6 - Mature",
    "Intended Audience :: Developers",
    "Intended Audience :: End Users/Desktop",
    "Intended Audience :: System Administrators",
    "License :: OSI Approved :: BSD License",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: PyPy",
    "Topic :: Text Processing :: Filters",
    "Topic :: Utilities",
]

[project.optional-dependencies]
plugins = [] # kept for backwards compatibility
windows-terminal = ["colorama >= 0.4.6"]

[project.urls]
Homepage = "https://github.com/csimoes1/pygments-tldr"
Documentation = "https://github.com/csimoes1/pygments-tldr"
Source = "https://github.com/csimoes1/pygments-tldr"
"Bug Tracker" = "https://github.com/csimoes1/pygments-tldr"
Changelog = "https://github.com/csimoes1/pygments-tldr/blob/master/CHANGES"

[project.scripts]
pygmentize = "pygments.cmdline:main"

# Temporary workaround for https://github.com/pypa/hatch/issues/1054
[tool.hatch.build.targets.wheel]
packages = ["pygments_tldr"]

[tool.hatch.version]
path = "pygments_tldr/__init__.py"

[tool.ruff]
target-version = "py38"
lint.extend-select = [
  "UP",  # "pyupgrade"
]
extend-exclude = [
    # These Python tests are purposefully invalid.
    "tests/snippets",
    "tests/examplefiles",
]
