Skip to content
Snippets Groups Projects
Commit b9148cf9 authored by dboe's avatar dboe
Browse files

Update template

parent 45a4c127
No related branches found
No related tags found
No related merge requests found
Pipeline #78844 passed
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
- repo: https://gitlab.com/dboe/dough
rev: v0.1.10
hooks:
- id: readthedocs_requirements
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-json
- id: pretty-format-json
args: ['--indent', '4']
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- repo: https://github.com/asottile/blacken-docs
rev: v1.7.0
hooks:
- id: blacken-docs
......@@ -5,6 +5,12 @@
# Required
version: 2
formats: all
build:
image: latest
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
......@@ -14,3 +20,7 @@ python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
......@@ -73,11 +73,7 @@ update:
echo "Your status is not clean! I can not update!"; \
exit 1; \
fi
# Uninstall pre-commit
pre-commit uninstall
# Starting upgrade
cookiecutter_project_upgrader
# Install pre-commit again
pre-commit install
FORCE: ;
......@@ -30,8 +30,7 @@ source_dir = config["build_sphinx"]["source-dir"]
# -- General configuration ---------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
needs_sphinx = "2.2.0"
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
......
......@@ -51,6 +51,7 @@ exclude =
all =
%(dev)s
dev =
%(docs)s
%(test)s
bumpversion # for incrementing the version
twine # for publishing
......@@ -58,6 +59,9 @@ dev =
pre-commit # https://pre-commit.com/ for hook managment
pre-commit-hooks
cookiecutter_project_upgrader
docs =
sphinx>=2.2.0 # requires templatedir option in sphinx-apidoc
sphinx_rtd_theme>=0.4.3
test =
flake8
pytest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment