Skip to content

Commit

Permalink
blackify code
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
velis74 committed Apr 26, 2023
1 parent b3e8ea0 commit 627b288
Show file tree
Hide file tree
Showing 122 changed files with 3,642 additions and 2,300 deletions.
68 changes: 35 additions & 33 deletions doc/archive/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@

import django

sys.path.insert(0, os.path.abspath('..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'setup.settings'
sys.path.insert(0, os.path.abspath(".."))
os.environ["DJANGO_SETTINGS_MODULE"] = "setup.settings"
django.setup()

project = 'DynamicForms'
copyright = '2018-present, Velis Ltd'
author = 'Velis Ltd'
project = "DynamicForms"
copyright = "2018-present, Velis Ltd"
author = "Velis Ltd"

# The short X.Y version
version = '0.9'
version = "0.9"
# The full version, including alpha/beta/rc tags
release = '0.9 dev'
release = "0.9 dev"

# -- General configuration ---------------------------------------------------

Expand All @@ -46,29 +46,29 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.extlinks',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.extlinks",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
]

# Report all the warnings
nitpicky = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand All @@ -80,17 +80,17 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'pyramid'
html_theme = "pyramid"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand All @@ -101,7 +101,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand All @@ -117,23 +117,20 @@
# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'DynamicFormsdoc'
htmlhelp_basename = "DynamicFormsdoc"

# -- Options for LaTeX output ------------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand All @@ -143,25 +140,30 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'DynamicForms.tex', 'DynamicForms Documentation', 'Velis Ltd', 'manual'),
(master_doc, "DynamicForms.tex", "DynamicForms Documentation", "Velis Ltd", "manual"),
]

# -- Options for manual page output ------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'dynamicforms', 'DynamicForms Documentation', [author], 1)
]
man_pages = [(master_doc, "dynamicforms", "DynamicForms Documentation", [author], 1)]

# -- Options for Texinfo output ----------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'DynamicForms', 'DynamicForms Documentation',
author, 'DynamicForms', 'One line description of project.', 'Miscellaneous'),
(
master_doc,
"DynamicForms",
"DynamicForms Documentation",
author,
"DynamicForms",
"One line description of project.",
"Miscellaneous",
),
]

# -- Extension configuration -------------------------------------------------
Expand All @@ -173,11 +175,11 @@


# Primary domain: all code that doesn't specify domain will be in python language
primary_domain = 'py'
primary_domain = "py"


extlinks = {
'project_name': ('%s', ''),
"project_name": ("%s", ""),
}

# autodoc configuration
Expand Down
12 changes: 6 additions & 6 deletions dynamicforms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
__title__ = 'DynamicForms'
__version__ = '0.70.1'
__author__ = 'Jure Erznožnik'
__email__ = 'jure.erznoznik@gmail.com'
__license__ = 'BSD 3-Clause'
__copyright__ = 'Copyright 2017-present Jure Erznožnik'
__title__ = "DynamicForms"
__version__ = "0.70.1"
__author__ = "Jure Erznožnik"
__email__ = "jure.erznoznik@gmail.com"
__license__ = "BSD 3-Clause"
__copyright__ = "Copyright 2017-present Jure Erznožnik"

VERSION = __version__
Loading

0 comments on commit 627b288

Please sign in to comment.