diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00cb6b6d..4f76ee52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,3 +41,10 @@ repos: rev: v2.5.0 hooks: - id: pyproject-fmt + - repo: https://github.com/rstcheck/rstcheck + rev: v6.2.4 + hooks: + - id: rstcheck + additional_dependencies: + - sphinx==6.1.3 + - tomli==2.0.1 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 587d3641..4800829f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,7 +12,7 @@ Changelog fields into URLs. This allows multiple LinkFields per model * Fixed cross-site linking which reduces the number situations of the hostname needing to be part of a link -* Droped django-select2 dependency in favor of django admin's autocomplete +* Dropped django-select2 dependency in favor of django admin's autocomplete 4.0.0 (2024-07-22) ================== diff --git a/pyproject.toml b/pyproject.toml index c1fb9f79..e46dbf0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,92 +1,104 @@ [build-system] -requires = ["hatchling"] build-backend = "hatchling.build" +requires = [ "hatchling" ] + [project] name = "djangocms-link" -dynamic = ["version"] description = "Adds a link plugin to django CMS" readme = "README.rst" -license = {text = "BSD-3-Clause" } -authors = [ - { name = "Divio AG", email = "info@divio.ch" }, -] +license = { text = "BSD-3-Clause" } maintainers = [ - { name = "Django CMS Association and contributors", email = "info@django-cms.org" }, + { name = "Django CMS Association and contributors", email = "info@django-cms.org" }, +] +authors = [ + { name = "Divio AG", email = "info@divio.ch" }, ] classifiers = [ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Framework :: Django", - "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", - "Framework :: Django :: 5.1", - "Framework :: Django CMS", - "Framework :: Django CMS :: 3.11", - "Framework :: Django CMS :: 4.0", - "Framework :: Django CMS :: 4.1", - "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Topic :: Internet :: WWW/HTTP", - "Topic :: Internet :: WWW/HTTP :: Dynamic Content", - "Topic :: Software Development", - "Topic :: Software Development :: Libraries", + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", + "Framework :: Django CMS", + "Framework :: Django CMS :: 3.11", + "Framework :: Django CMS :: 4.0", + "Framework :: Django CMS :: 4.1", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "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", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Software Development", + "Topic :: Software Development :: Libraries", ] +dynamic = [ "version" ] dependencies = [ - "django-cms>=3.7,!=4.1.0,!=4.1.1,!=4.1.2", - "djangocms-attributes-field>=1", + "django-cms>=3.7,!=4.1,!=4.1.1,!=4.1.2", + "djangocms-attributes-field>=1", ] -[project.urls] -Homepage = "https://github.com/django-cms/djangocms-link" +urls.Homepage = "https://github.com/django-cms/djangocms-link" [tool.hatch.version] path = "djangocms_link/__init__.py" [tool.hatch.build.targets.sdist] include = [ - "/djangocms_link", -] - -[tool.flake8] -max-line-length = 119 -exclude = [ - "*.egg-info", - ".eggs", - ".env", - ".git", - ".settings", - ".tox", - ".venv", - "build", - "data", - "dist", - "docs", - "*migrations*", - "requirements", - "tmp" + "/djangocms_link", ] [tool.isort] line_length = 119 skip = [ - "manage.py", "*migrations*", ".tox", ".eggs", ".env", ".venv", "data" + "manage.py", + "*migrations*", + ".tox", + ".eggs", + ".env", + ".venv", + "data", ] include_trailing_comma = true multi_line_output = 5 lines_after_imports = 2 default_section = "THIRDPARTY" sections = [ - "FUTURE", "STDLIB", "DJANGO", "CMS", - "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER" + "FUTURE", + "STDLIB", + "DJANGO", + "CMS", + "THIRDPARTY", + "FIRSTPARTY", + "LOCALFOLDER", ] known_first_party = "djangocms_link" -known_cms = ["cms", "menus"] +known_cms = [ "cms", "menus" ] known_django = "django" + +[tool.flake8] +max-line-length = 119 +exclude = [ + "*.egg-info", + ".eggs", + ".env", + ".git", + ".settings", + ".tox", + ".venv", + "build", + "data", + "dist", + "docs", + "*migrations*", + "requirements", + "tmp", +]