-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (101 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (101 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[project]
name = "wagtailcodeblock"
authors = [{name = "Tim Allen", email = "tallen@wharton.upenn.edu"},]
description = "Wagtail Code Block provides PrismJS syntax highlighting in Wagtail."
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10"
keywords = ["wagtail", "cms", "contact", "syntax", "code", "highlighting", "highlighter"]
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Django",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Framework :: Wagtail",
"Framework :: Wagtail :: 7",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"wagtail>=7.1",
]
[project.optional-dependencies]
dev = [
"coverage[toml]>=6.5",
"django-coverage-plugin",
"ipython",
"pre-commit>=4",
"pytest-coverage",
"pytest-django",
"ruff",
"tox>=4.18.1",
]
[project.urls]
"Homepage" = "https://github.com/FlipperPA/wagtailcodeblock"
"Repository" = "https://github.com/FlipperPA/wagtailcodeblock"
"Documentation" = "https://github.com/FlipperPA/wagtailcodeblock"
[build-system]
requires = ["setuptools>=77", "setuptools_scm>=7", "wheel"]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
core = "ctrace" # django_coverage_plugin's file tracer isn't supported by SysMonitor
plugins = ["django_coverage_plugin"]
include = ["wagtailcodeblock/*"]
[tool.setuptools_scm]
write_to = "wagtailcodeblock/_version.py"
[tool.pytest.ini_options]
addopts = "--reuse-db"
python_files = "tests.py test_*.py"
DJANGO_SETTINGS_MODULE = "tests.settings"
[tool.ruff]
target-version = "py310" # minimum target version
exclude = [".git"]
lint.extend-select = [
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle errors
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"INT", # flake8-gettext
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"RUF100", # unused noqa
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
lint.extend-ignore = [
"E501", # no line length errors
]
lint.fixable = ["C4", "E", "F", "I", "UP"]
lint.isort.force-sort-within-sections = true
lint.isort.known-first-party = ["wagtailcodeblock"]
lint.isort.lines-after-imports = 2
lint.isort.section-order = [
"future",
"standard-library",
"django",
"wagtail",
"third-party",
"first-party",
"local-folder",
]
lint.isort.sections.django = ["django"]
lint.isort.sections.wagtail = ["wagtail", "modelcluster"]