-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (107 loc) · 2.84 KB
/
pyproject.toml
File metadata and controls
117 lines (107 loc) · 2.84 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
109
110
111
112
113
114
115
116
117
[project]
name = "django-highlightjs"
version = "0.2.14"
description = "A Django app to easyily integrate highlight.js syntax highlighter."
authors = [
{ name = "Mounir Messelmeni", email = "messelmeni.mounir@gmail.com" },
]
requires-python = ">=3.10"
readme = "README.md"
license = "mit"
keywords = [
"django",
"highlightjs",
"syntax",
"highlighter",
"syntax highlighter",
"highlight.js",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["Django>= 4.2"]
[project.urls]
Homepage = "https://github.com/mounirmesselmeni/django-highlightjs/"
Repository = "https://github.com/mounirmesselmeni/django-highlightjs/"
[dependency-groups]
dev = ["coverage>=7,<8", "pre-commit>=3,<5", "ruff>=0.6,<0.13"]
[tool.hatch.build.targets.sdist]
include = ["highlightjs"]
exclude = ["highlightjs/tests.py", "highlightjs/testsettings.py"]
[tool.hatch.build.targets.wheel]
include = ["highlightjs"]
exclude = ["highlightjs/tests.py", "highlightjs/testsettings.py"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".pre-commit-cache",
".ruff_cache",
".tox",
".venv",
"venv",
"docs",
"__pycache",
"**/migrations/*",
]
line-length = 120
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
# Docs: https://beta.ruff.rs/docs/
# Rules: https://beta.ruff.rs/docs/rules/
select = [
"F",
"E",
"B",
"C4",
"EXE",
"ISC",
"ICN",
"INP",
"PIE",
"SIM",
"W",
"T20",
"UP",
"T10",
"G",
"DJ001",
"DJ008",
"C90",
"ERA",
]
# Later on might be useful C/C90 (Compexity), ERA (Found commented-out code), FBT
ignore = ["B008", "SIM102", "ISC001"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10