*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 30d8889f authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Use black as code formatter

parent 26957e6f
No related branches found
No related tags found
1 merge request!101Use setup.cfg instead of setup.py
......@@ -14,15 +14,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# Python files
[*.py]
indent_size = 4
# isort plugin configuration
known_first_party = invenio_theme_tuw
multi_line_output = 2
default_section = THIRDPARTY
skip = .eggs
# RST files (used by sphinx)
[*.rst]
indent_size = 4
......
......@@ -17,6 +17,7 @@
exclude sonar-project.properties
exclude .gitlab-ci.yml
include .git-blame-ignore-revs
include .dockerignore
include .editorconfig
include .tx/config
......
......@@ -7,10 +7,10 @@
"""Sphinx configuration."""
from invenio_theme_tuw import __version__
import sphinx.environment
from invenio_theme_tuw import __version__
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
......@@ -45,9 +45,9 @@ source_suffix = ".rst"
master_doc = "index"
# General information about the project.
project = u"Invenio-Theme-TUW"
copyright = u"2020, TU Wien"
author = u"TU Wien"
project = "Invenio-Theme-TUW"
copyright = "2020, TU Wien"
author = "TU Wien"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......@@ -242,8 +242,8 @@ latex_documents = [
(
master_doc,
"invenio-theme-tuw.tex",
u"invenio-theme-tuw Documentation",
u"TU Wien",
"invenio-theme-tuw Documentation",
"TU Wien",
"manual",
),
]
......@@ -274,7 +274,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, "invenio-theme-tuw", u"invenio-theme-tuw Documentation", [author], 1)
(master_doc, "invenio-theme-tuw", "invenio-theme-tuw Documentation", [author], 1)
]
# If true, show URL addresses after external links.
......@@ -290,7 +290,7 @@ texinfo_documents = [
(
master_doc,
"invenio-theme-tuw",
u"Invenio-Theme-TUW Documentation",
"Invenio-Theme-TUW Documentation",
author,
"invenio-theme-tuw",
"TU Wien theme for Invenio (RDM).",
......
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 - 2021 TU Wien.
#
# Invenio-Theme-TUW is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
[pytest]
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tuw --cov-report=term-missing
testpaths = docs tests invenio_theme_tuw
......@@ -40,6 +40,7 @@ install_requires =
[options.extras_require]
tests =
pytest-black>=0.3.0,<0.3.10
pytest-invenio>=1.4.0
Sphinx>=4
# Kept for backwards compatibility
......@@ -95,10 +96,8 @@ max-line-length = 88
extend-ignore = E203
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
profile=black
[tool:pytest]
addopts = --black --isort --pydocstyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_theme_tuw --cov-report=term-missing
testpaths = docs tests invenio_theme_tuw
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