cmsmanage/pyproject.toml

196 lines
4.1 KiB
TOML
Raw Normal View History

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 = [
{ name = "Adam Goldsmith", email = "contact@adamgoldsmith.name" },
2024-11-04 00:55:31 -05:00
]
requires-python = ">=3.11"
classifiers = [
"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 = [
"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",
"google-api-python-client~=2.151",
"google-auth-oauthlib~=1.2",
"lxml~=5.3",
"markdownify~=0.13",
"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-12 13:14:15 -05:00
"setuptools~=75.4",
"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 = [
"coverage~=7.6",
"django-extensions~=3.2",
2024-11-12 13:14:15 -05:00
"hypothesis[django]~=6.118",
"ipython~=8.29",
"tblib~=3.0",
2024-11-04 01:02:17 -05:00
]
debug = [
"django-debug-toolbar~=4.4",
2024-11-04 01:02:17 -05:00
]
lint = [
"djlint~=1.36",
"pyproject-fmt~=2.5",
"ruff~=0.7",
2024-11-04 01:02:17 -05:00
]
typing = [
"django-stubs~=5.1",
"djangorestframework-stubs[compatible-mypy]~=3.15",
"google-api-python-client-stubs~=1.28",
"mypy~=1.11",
2024-11-12 13:14:15 -05:00
"setuptools~=75.4",
"types-bleach~=6.1",
2024-11-12 13:14:15 -05:00
"types-lxml~=2024.11",
"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" ]
[tool.pdm.scripts]
start = "./manage.py runserver"
fmt.shell = "ruff check --fix ; ruff format . ; djlint --reformat ."
[tool.ruff]
line-length = 88
2024-02-02 01:25:28 -05:00
2024-11-04 00:55:31 -05:00
lint.select = [
"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 = [
"cmsmanage",
"dashboard",
"doorcontrol",
"membershipworks",
"paperwork",
"rentals",
"reservations",
"tasks",
]
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" ]
[tool.pyproject-fmt]
indent = 4
[tool.coverage.run]
source = [
"cmsmanage",
"dashboard",
"doorcontrol",
"membershipworks",
"paperwork",
"rentals",
"reservations",
]
omit = [
"*/migrations/*",
]
2024-11-04 00:55:31 -05:00
[tool.mypy]
plugins = [
"./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