Skip to content

Commit

Permalink
build: add tox support
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Mestry <[email protected]>
  • Loading branch information
xames3 committed Nov 21, 2024
1 parent b32cf1b commit b79f73d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
36 changes: 20 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "coeus-sphinx-theme"
dynamic = [ "version", "dependencies" ]
description = "A Sphinx Documentation Theme."
readme = "README.rst"
requires-python = ">=3.11"
requires-python = ">=3.8"
license.file = "LICENSE"
authors = [
{ name = "Akshay Mestry", email = "[email protected]" }
Expand All @@ -20,9 +20,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Documentation",
"Topic :: Software Development :: Documentation"
]
Expand Down Expand Up @@ -59,19 +61,21 @@ strict = true
show_column_numbers = true
warn_unreachable = true
warn_unused_ignores = true
warn_unused_configs = true
check_untyped_defs = true
disallow_incomplete_defs = true
ignore_missing_imports = true
disable_error_code = ["attr-defined", "index", "union-attr"]

[tool.djlint]
blank_line_after_tag = "load,extends,include"
blank_line_before_tag = "load,extends,include"
extension = "html.jinja"
format_attribute_template_tags = true
format_css = true
ignore="H008,H021,T002"
indent = 4
max_attribute_length = 500
line_break_after_multiline_tag = false
max_line_length = 79
profile = "html"
[tool.tox]
requires = ["tox>=4"]
envlist = ["py312", "py311", "py310", "py39", "py38", "static"]

[tool.djlint.css]
indent_size = 4
[tool.tox.env.static]
deps = ["-r requirements-dev.txt"]
commands = [
["black", "-q", "coeus_sphinx_theme/"],
["flake8", "coeus_sphinx_theme/"],
["isort", "--sl", "coeus_sphinx_theme/"],
["mypy", "coeus_sphinx_theme/"],
]
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
black
build
djlint
docutils-stubs
flake8
isort
mypy
mypy-extensions
twine
tox
types-beautifulsoup4
typing_extensions
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
bs4
jupyter-cell
pytube
sphinx
sphinx-carousel
sphinx-copybutton
sphinx-tags
sphinx_design
sphinxext-opengraph
sphinxcontrib-jquery
sphinxext-opengraph

0 comments on commit b79f73d

Please sign in to comment.