|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "pythonie" |
| 7 | +version = "2.2.0" |
| 8 | +description = "Python Ireland website - Django/Wagtail CMS for python.ie and pycon.ie" |
| 9 | +readme = "README.md" |
| 10 | +requires-python = ">=3.13.0" |
| 11 | +license = {text = "MIT"} |
| 12 | +authors = [{ name = "Python Ireland", email = "[email protected]"}] |
| 13 | +keywords = ["django", "wagtail", "cms", "python-ireland", "pycon"] |
| 14 | +classifiers = [ |
| 15 | + "Development Status :: 5 - Production/Stable", |
| 16 | + "Framework :: Django :: 5.2", |
| 17 | + "Framework :: Wagtail :: 7", |
| 18 | + "Programming Language :: Python :: 3.13", |
| 19 | + "License :: OSI Approved :: MIT License", |
| 20 | +] |
| 21 | + |
| 22 | +# Main production dependencies (from requirements/main.in) |
| 23 | +dependencies = [ |
| 24 | + "Delorean", |
| 25 | + "Django", |
| 26 | + "Willow", |
| 27 | + "boto3", |
| 28 | + "colander", |
| 29 | + "defusedxml", |
| 30 | + "dj-database-url", |
| 31 | + "dj-static", |
| 32 | + "django-compressor", |
| 33 | + "django-extensions", |
| 34 | + "django-libsass", |
| 35 | + "django-modelcluster", |
| 36 | + "django-storages", |
| 37 | + "django-taggit", |
| 38 | + "gunicorn", |
| 39 | + "pandas", |
| 40 | + "pydantic", |
| 41 | + "python-dateutil", |
| 42 | + "pytz", |
| 43 | + "redis", |
| 44 | + "requests>=2.32.5", |
| 45 | + "wagtail", |
| 46 | + "whitenoise", |
| 47 | +] |
| 48 | + |
| 49 | +# PEP 735 Dependency Groups |
| 50 | +[dependency-groups] |
| 51 | +# Development dependencies (from requirements/dev.in) |
| 52 | +dev = [ |
| 53 | + "coverage", |
| 54 | + "django-debug-toolbar", |
| 55 | + "factory-boy", |
| 56 | + "fakeredis", |
| 57 | + "isort", |
| 58 | + "model_mommy", |
| 59 | + "pip-audit", |
| 60 | + "pipdeptree", |
| 61 | + "ruff", |
| 62 | + "uv", |
| 63 | +] |
| 64 | + |
| 65 | +# Production-specific dependencies (from requirements/production.in) |
| 66 | +production = [ |
| 67 | + "psycopg[binary]", |
| 68 | +] |
| 69 | + |
| 70 | +# Tool configurations |
| 71 | +[tool.ruff] |
| 72 | +target-version = "py313" |
| 73 | +line-length = 88 |
| 74 | +exclude = [ |
| 75 | + "migrations", |
| 76 | + ".venv", |
| 77 | + "venv", |
| 78 | + "pythonie-venv", |
| 79 | + ".git", |
| 80 | + "__pycache__", |
| 81 | +] |
| 82 | + |
| 83 | +[tool.ruff.lint] |
| 84 | +select = [ |
| 85 | + "E", # pycodestyle errors |
| 86 | + "F", # pyflakes |
| 87 | + "I", # isort |
| 88 | + "N", # pep8-naming |
| 89 | + "W", # pycodestyle warnings |
| 90 | + "UP", # pyupgrade |
| 91 | + "DJ", # django-specific rules |
| 92 | +] |
| 93 | +ignore = [ |
| 94 | + "E501", # Line too long (handled by formatter) |
| 95 | +] |
| 96 | + |
| 97 | +[tool.ruff.lint.isort] |
| 98 | +known-first-party = ["pythonie", "core", "meetups", "speakers", "sponsors"] |
| 99 | +section-order = ["future", "standard-library", "third-party", "django", "wagtail", "first-party", "local-folder"] |
| 100 | + |
| 101 | +[tool.ruff.lint.isort.sections] |
| 102 | +"django" = ["django"] |
| 103 | +"wagtail" = ["wagtail"] |
| 104 | + |
| 105 | +[tool.ruff.format] |
| 106 | +quote-style = "double" |
| 107 | +indent-style = "space" |
| 108 | +skip-magic-trailing-comma = false |
| 109 | +line-ending = "auto" |
| 110 | + |
| 111 | +[tool.coverage.run] |
| 112 | +source = ["pythonie"] |
| 113 | +omit = [ |
| 114 | + "*/migrations/*", |
| 115 | + "*/tests/*", |
| 116 | + "*/test_*.py", |
| 117 | + "*/__pycache__/*", |
| 118 | + "*/venv/*", |
| 119 | + "*/.venv/*", |
| 120 | +] |
| 121 | + |
| 122 | +[tool.coverage.report] |
| 123 | +exclude_lines = [ |
| 124 | + "pragma: no cover", |
| 125 | + "def __repr__", |
| 126 | + "raise AssertionError", |
| 127 | + "raise NotImplementedError", |
| 128 | + "if __name__ == .__main__.:", |
| 129 | +] |
| 130 | + |
| 131 | +[tool.django-stubs] |
| 132 | +django_settings_module = "pythonie.settings.dev" |
| 133 | + |
| 134 | +[tool.hatchling.build.targets.wheel] |
| 135 | +packages = ["pythonie"] |
0 commit comments