diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ef2857..9b466c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending +- repo: https://github.com/asottile/pyupgrade + rev: v3.15.0 + hooks: + - id: pyupgrade + args: [--py311-plus] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.2.1 hooks: diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..fabd0c5 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include *.rst +include *.yaml +include tox.ini diff --git a/README.md b/README.md deleted file mode 100644 index c43b9e0..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# pre-commit-check-chameleon -Check for syntax and accessibility misuse in Chameleon templates. diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..c2577d9 --- /dev/null +++ b/README.rst @@ -0,0 +1,11 @@ +pre-commit-check-chameleon +========================== + +Purpose: Check for syntax and accessibility misuse in Chameleon templates. + +Usage in ``.pre-commit-config.yaml``:: + + - repo: https://github.com/minddistrict/pre-commit-check-chameleon + rev: 1.0 + hooks: + - id: check-chameleon diff --git a/setup.py b/setup.py index 8670757..feb96ce 100644 --- a/setup.py +++ b/setup.py @@ -3,13 +3,44 @@ version = "1.0.dev0" + +def read(fname): + with open(fname) as f: + return f.read() + + setup( name="pre-commit-check-chameleon", version=version, + description="Check Chameleon templates", + long_description="\n\n".join([read("README.rst"), read("CHANGES.rst")]), + project_urls={ + "Changelog": "https://github.com/minddistrict/pre-commit-check-chameleon/blob/master/CHANGES.rst", + "Issue Tracker": "https://github.com/minddistrict/pre-commit-check-chameleon/issues", + "Sources": "https://github.com/minddistrict/pre-commit-check-chameleon", + }, + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Software Development :: Testing", + "Topic :: Text Processing :: Markup :: HTML", + "Topic :: Utilities", + ], + keywords="pre-commit chameleon", + author="Minddistrict", + author_email="support@minddistrict.com", package_dir={"": "src"}, packages=find_packages("src"), include_package_data=True, zip_safe=False, + python_requires=">=3.11", install_requires=[ "lxml", ],