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

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

Use black as code formatter

parent a7e1576c
Branches
Tags
1 merge request!25Use setup.cfg instead of setup.py
...@@ -14,15 +14,6 @@ insert_final_newline = true ...@@ -14,15 +14,6 @@ insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
charset = utf-8 charset = utf-8
# Python files
[*.py]
indent_size = 4
# isort plugin configuration
known_first_party = invenio_config_tuw
multi_line_output = 2
default_section = THIRDPARTY
skip = .eggs
# RST files (used by sphinx) # RST files (used by sphinx)
[*.rst] [*.rst]
indent_size = 4 indent_size = 4
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
exclude .gitlab-ci.yml exclude .gitlab-ci.yml
exclude sonar-project.properties exclude sonar-project.properties
include .git-blame-ignore-revs
include .dockerignore include .dockerignore
include .editorconfig include .editorconfig
include .tx/config include .tx/config
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
"""Sphinx configuration.""" """Sphinx configuration."""
from invenio_config_tuw import __version__
import sphinx.environment import sphinx.environment
from invenio_config_tuw import __version__
# -- General configuration ------------------------------------------------ # -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here. # If your documentation needs a minimal Sphinx version, state it here.
......
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 - 2021 TU Wien.
#
# Invenio-Config-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]
pep8ignore = docs/conf.py ALL
addopts = --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_config_tuw --cov-report=term-missing
testpaths = docs tests invenio_config_tuw
...@@ -40,6 +40,7 @@ install_requires = ...@@ -40,6 +40,7 @@ install_requires =
[options.extras_require] [options.extras_require]
tests = tests =
pytest-black>=0.3.0,<0.3.10
check-manifest>=0.25 check-manifest>=0.25
coverage>=4.0 coverage>=4.0
isort>=4.3.3 isort>=4.3.3
...@@ -78,6 +79,10 @@ universal = 1 ...@@ -78,6 +79,10 @@ universal = 1
[pydocstyle] [pydocstyle]
add_ignore = D401 add_ignore = D401
[pycodestyle]
exclude = docs/conf.py
ignore = E203,E501,W503
[compile_catalog] [compile_catalog]
directory = invenio_config_tuw/translations/ directory = invenio_config_tuw/translations/
...@@ -101,12 +106,9 @@ max-line-length = 88 ...@@ -101,12 +106,9 @@ max-line-length = 88
extend-ignore = E203,E731 extend-ignore = E203,E731
[isort] [isort]
multi_line_output = 3 profile=black
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
[pycodestyle] [tool:pytest]
ignore = E203,E501,W503 pep8ignore = docs/conf.py ALL
addopts = --black --pep8 --doctest-glob="*.rst" --doctest-modules --cov=invenio_config_tuw --cov-report=term-missing
testpaths = docs tests invenio_config_tuw
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment