mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-12 10:00:57 +00:00
Tomli is the upcoming python 3.11 standard library toml parser, and will be available as tomllib when 3.11 releases. This switches from using tomlkit to tomli, which brings it inline with black, poetry, and many other toml parsing python packages
65 lines
1.6 KiB
TOML
65 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["poetry_core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
[tool]
|
|
|
|
[tool.poetry]
|
|
name="djlint"
|
|
version="1.0.0"
|
|
description="HTML Template Linter and Formatter"
|
|
license="GPL-3.0-or-later"
|
|
authors=["Christopher Pickering <cpickering@rhc.net>"]
|
|
maintainers=["Christopher Pickering <cpickering@rhc.net>"]
|
|
readme="README.md"
|
|
repository="https://github.com/Riverside-Healthcare/djlint"
|
|
documentation="https://djlint.com"
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
"Operating System :: OS Independent",
|
|
]
|
|
packages = [
|
|
{ include = "djlint", from = "src" },
|
|
]
|
|
include = ["rules.yaml"]
|
|
[tool.black]
|
|
max_line_length = 99
|
|
quiet = true
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.7,<4.0"
|
|
click = "^8.0.1"
|
|
PyYAML = "^6.0"
|
|
colorama = "^0.4.4"
|
|
regex = "^2022.1.18"
|
|
tqdm = "^4.62.2"
|
|
tomli = { version = "^2.0.1", python = "<3.11" }
|
|
coverage = { version = "^6.3.1", optional = true }
|
|
pytest = { version = "^7.0.1", optional = true }
|
|
pytest-cov = { version = "^3.0.0", optional = true }
|
|
pathspec = "^0.9.0"
|
|
importlib-metadata = "^4.11.0"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
black = "^22.1.0"
|
|
isort = "^5.9.3"
|
|
|
|
[tool.poetry.extras]
|
|
test = ["coverage", "pytest", "pytest-cov"]
|
|
|
|
[tool.poetry.scripts]
|
|
djlint = "djlint:main"
|
|
|
|
[tool.isort]
|
|
multi_line_output = 3
|
|
include_trailing_comma = true
|
|
force_grid_wrap = 0
|
|
use_parentheses = true
|
|
ensure_newline_before_comments = true
|
|
line_length = 99
|
|
quiet = true
|
|
|
|
[tool.pylint.messages_control]
|
|
disable = "E1120, R0914, E0401, R0912, R0916, R0913, W0104, R0801, W1404, R0902, R0903, R1732, R0915, C0301, R1702"
|