2024-11-04 00:55:31 -05:00
|
|
|
[build-system]
|
|
|
|
build-backend = "pdm.backend"
|
|
|
|
requires = [ "pdm-backend" ]
|
|
|
|
|
2022-02-11 23:52:31 -05:00
|
|
|
[project]
|
2024-11-04 00:55:31 -05:00
|
|
|
name = "cmsmanage"
|
2022-02-11 23:52:31 -05:00
|
|
|
version = "0.1.0"
|
|
|
|
description = ""
|
|
|
|
authors = [
|
2024-11-12 13:12:48 -05:00
|
|
|
{ name = "Adam Goldsmith", email = "contact@adamgoldsmith.name" },
|
2024-11-04 00:55:31 -05:00
|
|
|
]
|
|
|
|
requires-python = ">=3.11"
|
|
|
|
|
|
|
|
classifiers = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
"Programming Language :: Python :: 3.13",
|
2022-02-11 23:52:31 -05:00
|
|
|
]
|
|
|
|
dependencies = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"bitstring~=4.2",
|
|
|
|
"django~=5.1",
|
|
|
|
"django-admin-logs~=1.3",
|
|
|
|
"django-auth-ldap~=5.1",
|
|
|
|
"django-autocomplete-light~=3.11",
|
|
|
|
"django-bootstrap5~=24.3",
|
|
|
|
"django-configurations[database,email]~=2.5",
|
|
|
|
"django-db-views~=0.1",
|
|
|
|
"django-filter~=24.3",
|
|
|
|
"django-markdownx~=4.0",
|
|
|
|
"django-model-utils~=5.0",
|
|
|
|
"django-nh3~=0.1",
|
|
|
|
"django-object-actions~=4.3",
|
|
|
|
"django-postgres-metrics~=0.15",
|
|
|
|
"django-q2~=1.7",
|
|
|
|
"django-recurrence~=1.11",
|
|
|
|
"django-sendfile2~=0.7",
|
|
|
|
"django-simple-history~=3.7",
|
|
|
|
"django-stubs-ext~=5.1",
|
|
|
|
"django-tables2~=2.7",
|
|
|
|
"django-template-partials~=24.4",
|
|
|
|
"django-vite~=3.0",
|
|
|
|
"django-weasyprint~=2.3",
|
|
|
|
"django-widget-tweaks~=1.5",
|
|
|
|
"djangorestframework~=3.15",
|
2024-11-25 13:36:19 -05:00
|
|
|
"google-api-python-client~=2.154",
|
2024-11-12 13:12:48 -05:00
|
|
|
"google-auth-oauthlib~=1.2",
|
|
|
|
"lxml~=5.3",
|
2024-11-25 13:36:19 -05:00
|
|
|
"markdownify~=0.14",
|
2024-11-12 13:12:48 -05:00
|
|
|
"mdformat~=0.7",
|
|
|
|
"mdformat-tables~=1.0",
|
|
|
|
"nh3~=0.2",
|
|
|
|
"openapi-client-udm~=1.0",
|
|
|
|
"psycopg[binary,pool]~=3.2",
|
|
|
|
"requests~=2.32",
|
|
|
|
"semver~=3.0",
|
|
|
|
"tablib[ods,xlsx]~=3.7",
|
|
|
|
"udm-rest-client~=1.2",
|
|
|
|
"weasyprint~=63.0",
|
2022-02-11 23:52:31 -05:00
|
|
|
]
|
2024-11-04 00:55:31 -05:00
|
|
|
optional-dependencies.server = [
|
2024-11-25 13:36:19 -05:00
|
|
|
"setuptools~=75.6",
|
2024-11-12 13:12:48 -05:00
|
|
|
"uvicorn[standard]~=0.32",
|
2024-11-04 00:55:31 -05:00
|
|
|
]
|
|
|
|
entry-points."djangoq.errorreporters".admin_email = "cmsmanage.django_q2_admin_email_reporter:AdminEmailReporter"
|
2022-02-11 23:52:31 -05:00
|
|
|
|
2024-11-04 01:02:17 -05:00
|
|
|
[dependency-groups]
|
|
|
|
dev = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"coverage~=7.6",
|
|
|
|
"django-extensions~=3.2",
|
2024-11-25 13:36:19 -05:00
|
|
|
"hypothesis[django]~=6.119",
|
2024-11-12 13:12:48 -05:00
|
|
|
"ipython~=8.29",
|
|
|
|
"tblib~=3.0",
|
2024-11-04 01:02:17 -05:00
|
|
|
]
|
|
|
|
debug = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"django-debug-toolbar~=4.4",
|
2024-11-04 01:02:17 -05:00
|
|
|
]
|
|
|
|
lint = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"djlint~=1.36",
|
|
|
|
"pyproject-fmt~=2.5",
|
2024-11-25 13:36:19 -05:00
|
|
|
"ruff~=0.8",
|
2024-11-04 01:02:17 -05:00
|
|
|
]
|
|
|
|
typing = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"django-stubs~=5.1",
|
|
|
|
"djangorestframework-stubs[compatible-mypy]~=3.15",
|
|
|
|
"google-api-python-client-stubs~=1.28",
|
|
|
|
"mypy~=1.11",
|
2024-11-25 13:36:19 -05:00
|
|
|
"setuptools~=75.6",
|
|
|
|
"types-bleach~=6.2",
|
2024-11-12 13:14:15 -05:00
|
|
|
"types-lxml~=2024.11",
|
2024-11-12 13:12:48 -05:00
|
|
|
"types-markdown~=3.7",
|
|
|
|
"types-psycopg2~=2.9",
|
|
|
|
"types-pygments~=2.18",
|
|
|
|
"types-python-dateutil~=2.9",
|
|
|
|
"types-requests~=2.32",
|
|
|
|
"types-urllib3~=1.26",
|
2024-11-04 01:02:17 -05:00
|
|
|
]
|
|
|
|
|
2024-11-04 00:55:31 -05:00
|
|
|
[[tool.pdm.source]]
|
|
|
|
url = "https://pypi.org/simple"
|
|
|
|
verify_ssl = true
|
|
|
|
name = "pypi"
|
|
|
|
|
|
|
|
[[tool.pdm.source]]
|
|
|
|
url = "https://git.claremontmakerspace.org/api/packages/CMS/pypi/simple"
|
|
|
|
verify_ssl = true
|
|
|
|
name = "CMS"
|
|
|
|
include_packages = [ "openapi-client-udm" ]
|
2024-11-12 13:19:13 -05:00
|
|
|
exclude_packages = [ "*" ]
|
2024-11-04 00:55:31 -05:00
|
|
|
|
|
|
|
[tool.pdm.scripts]
|
|
|
|
start = "./manage.py runserver"
|
|
|
|
fmt.shell = "ruff check --fix ; ruff format . ; djlint --reformat ."
|
2023-11-14 13:52:55 -05:00
|
|
|
|
2024-01-17 21:17:24 -05:00
|
|
|
[tool.ruff]
|
2023-09-07 10:55:08 -04:00
|
|
|
line-length = 88
|
2024-02-02 01:25:28 -05:00
|
|
|
|
2024-11-04 00:55:31 -05:00
|
|
|
lint.select = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"A",
|
|
|
|
"B",
|
|
|
|
"C4",
|
|
|
|
"DJ012",
|
|
|
|
"E4",
|
|
|
|
"E7",
|
|
|
|
"E9",
|
|
|
|
"F",
|
|
|
|
"FIX003",
|
|
|
|
"FURB",
|
|
|
|
"I",
|
|
|
|
"INP",
|
|
|
|
"ISC",
|
|
|
|
"LOG",
|
|
|
|
"PERF",
|
|
|
|
"PIE",
|
|
|
|
"PL",
|
|
|
|
"PTH",
|
|
|
|
"Q",
|
|
|
|
"RSE",
|
|
|
|
"SIM",
|
|
|
|
"TCH",
|
|
|
|
"UP",
|
2024-08-07 13:58:54 -04:00
|
|
|
]
|
2024-11-04 00:55:31 -05:00
|
|
|
lint.ignore = [ "ISC001" ]
|
|
|
|
lint.isort.known-first-party = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"cmsmanage",
|
|
|
|
"dashboard",
|
|
|
|
"doorcontrol",
|
|
|
|
"membershipworks",
|
|
|
|
"paperwork",
|
|
|
|
"rentals",
|
|
|
|
"reservations",
|
|
|
|
"tasks",
|
2024-01-17 21:17:24 -05:00
|
|
|
]
|
2024-11-04 00:55:31 -05:00
|
|
|
lint.isort.section-order = [ "future", "standard-library", "django", "third-party", "first-party", "local-folder" ]
|
|
|
|
lint.isort.sections."django" = [ "django" ]
|
2022-02-14 12:44:42 -05:00
|
|
|
|
2024-11-12 13:12:48 -05:00
|
|
|
[tool.pyproject-fmt]
|
|
|
|
indent = 4
|
|
|
|
|
2024-09-05 00:57:22 -04:00
|
|
|
[tool.coverage.run]
|
|
|
|
source = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"cmsmanage",
|
|
|
|
"dashboard",
|
|
|
|
"doorcontrol",
|
|
|
|
"membershipworks",
|
|
|
|
"paperwork",
|
|
|
|
"rentals",
|
|
|
|
"reservations",
|
2024-09-05 00:57:22 -04:00
|
|
|
]
|
|
|
|
omit = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"*/migrations/*",
|
2024-09-05 00:57:22 -04:00
|
|
|
]
|
|
|
|
|
2024-11-04 00:55:31 -05:00
|
|
|
[tool.mypy]
|
|
|
|
plugins = [
|
2024-11-12 13:12:48 -05:00
|
|
|
"./cmsmanage/mypy_django_configurations_plugin.py",
|
|
|
|
"mypy_django_plugin.main",
|
|
|
|
"mypy_drf_plugin.main",
|
2023-11-09 13:01:47 -05:00
|
|
|
]
|
2022-02-11 23:52:31 -05:00
|
|
|
|
2024-11-04 00:55:31 -05:00
|
|
|
[tool.djlint]
|
|
|
|
profile = "django"
|
|
|
|
extension = ".dj.html"
|
|
|
|
indent = 2
|
|
|
|
blank_line_after_tag = "load,extends"
|
|
|
|
max_blank_lines = 1
|
|
|
|
ignore = "T003,H017,H021,H030,H031"
|
|
|
|
custom_blocks = "partialdef"
|
|
|
|
format_css = true
|
|
|
|
format_js = true
|
|
|
|
css.indent_size = 2
|
|
|
|
js.indent_size = 2
|
2022-02-11 23:52:31 -05:00
|
|
|
|
2024-11-04 00:55:31 -05:00
|
|
|
[tool.django-stubs]
|
|
|
|
django_settings_module = "cmsmanage.settings"
|
|
|
|
strict_settings = false
|