Skip to content

Commit f581d8f

Browse files
cdgriffithdogeek
andauthored
Version 0.9.6 (#60)
- Adding #58 defaultlist (Thanks to Dogeek) - Adding LoggerIOWrapper (Thanks to Dogeek) - Adding log_it (Thanks to Dogeek) - Adding #57 singleton implementation (Thanks to Dogeek) - Changing line length to 120 and using `black` standard formatter Co-authored-by: Dogeek <dogeek@users.noreply.github.com>
1 parent 171ea3d commit f581d8f

36 files changed

+1296
-879
lines changed

.black.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tool.black]
2+
line-length = 120
3+
target-version = ['py36', 'py37', 'py38']
4+
exclude = '''
5+
/(
6+
\.eggs
7+
| \.git
8+
| \.idea
9+
| \.pytest_cache
10+
| _build
11+
| build
12+
| dist
13+
| venv
14+
)/
15+
'''

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: mixed-line-ending
6+
- id: trailing-whitespace
7+
- id: requirements-txt-fixer
8+
- id: fix-encoding-pragma
9+
- id: check-byte-order-marker
10+
- id: debug-statements
11+
- id: check-yaml
12+
- repo: https://github.com/ambv/black
13+
rev: stable
14+
hooks:
15+
- id: black
16+
args: [--config=.black.toml]

CHANGES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
Version 0.9.6
5+
-------------
6+
7+
- Adding #58 defaultlist (Thanks to Dogeek)
8+
- Adding LoggerIOWrapper (Thanks to Dogeek)
9+
- Adding log_it (Thanks to Dogeek)
10+
- Adding #57 singleton implementation (Thanks to Dogeek)
11+
- Changing line length to 120 and using `black` standard formatter
12+
413
Version 0.9.5
514
-------------
615

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2019 Chris Griffith
3+
Copyright (c) 2014-2020 Chris Griffith
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Please note this is currently in development. Any item in development
5555
prior to a major version (1.x, 2.x) may change. Once at a major version,
5656
no breaking changes are planned to occur within that version.
5757

58-
What's in the box
59-
-----------------
58+
What's included
59+
---------------
6060

6161
General Helpers and File Management
6262
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -394,7 +394,7 @@ License
394394

395395
The MIT License (MIT)
396396

397-
Copyright (c) 2014-2019 Chris Griffith
397+
Copyright (c) 2014-2020 Chris Griffith
398398

399399
Permission is hereby granted, free of charge, to any person obtaining a copy of
400400
this software and associated documentation files (the "Software"), to deal in

doc/source/conf.py

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# If extensions (or modules to document with autodoc) are in another directory,
2222
# add these directories to sys.path here. If the directory is relative to the
2323
# documentation root, use os.path.abspath to make it absolute, like shown here.
24-
#sys.path.insert(0, os.path.abspath('.'))
24+
# sys.path.insert(0, os.path.abspath('.'))
2525

2626
root = os.path.abspath(os.path.dirname(__file__))
2727

@@ -40,217 +40,211 @@
4040
# -- General configuration ------------------------------------------------
4141

4242
# If your documentation needs a minimal Sphinx version, state it here.
43-
#needs_sphinx = '1.0'
43+
# needs_sphinx = '1.0'
4444

4545
# Add any Sphinx extension module names here, as strings. They can be
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4747
# ones.
4848
extensions = [
49-
'sphinx.ext.autodoc',
49+
"sphinx.ext.autodoc",
5050
]
5151

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

5555
# The suffix of source filenames.
56-
source_suffix = '.rst'
56+
source_suffix = ".rst"
5757

5858
# The encoding of source files.
59-
#source_encoding = 'utf-8-sig'
59+
# source_encoding = 'utf-8-sig'
6060

6161
# The master toctree document.
62-
master_doc = 'index'
62+
master_doc = "index"
6363

6464
# General information about the project.
65-
project = 'Reusables'
66-
copyright = '2014-2016, Chris Griffith'
65+
project = "Reusables"
66+
copyright = "2014-2020, Chris Griffith"
6767

6868
# The version info for the project you're documenting, acts as replacement for
6969
# |version| and |release|, also used in various other places throughout the
7070
# built documents.
7171
#
7272
# The short X.Y version.
73-
version = attrs['version']
73+
version = attrs["version"]
7474
# The full version, including alpha/beta/rc tags.
75-
release = attrs['version']
75+
release = attrs["version"]
7676

7777
# The language for content autogenerated by Sphinx. Refer to documentation
7878
# for a list of supported languages.
79-
#language = None
79+
# language = None
8080

8181
# There are two options for replacing |today|: either, you set today to some
8282
# non-false value, then it is used:
83-
#today = ''
83+
# today = ''
8484
# Else, today_fmt is used as the format for a strftime call.
85-
#today_fmt = '%B %d, %Y'
85+
# today_fmt = '%B %d, %Y'
8686

8787
# List of patterns, relative to source directory, that match files and
8888
# directories to ignore when looking for source files.
8989
exclude_patterns = []
9090

9191
# The reST default role (used for this markup: `text`) to use for all
9292
# documents.
93-
#default_role = None
93+
# default_role = None
9494

9595
# If true, '()' will be appended to :func: etc. cross-reference text.
96-
#add_function_parentheses = True
96+
# add_function_parentheses = True
9797

9898
# If true, the current module name will be prepended to all description
9999
# unit titles (such as .. function::).
100100
add_module_names = False
101101

102102
# If true, sectionauthor and moduleauthor directives will be shown in the
103103
# output. They are ignored by default.
104-
#show_authors = False
104+
# show_authors = False
105105

106106
# The name of the Pygments (syntax highlighting) style to use.
107-
pygments_style = 'sphinx'
107+
pygments_style = "sphinx"
108108

109109
# A list of ignored prefixes for module index sorting.
110-
#modindex_common_prefix = []
110+
# modindex_common_prefix = []
111111

112112
# If true, keep warnings as "system message" paragraphs in the built documents.
113-
#keep_warnings = False
113+
# keep_warnings = False
114114

115115

116116
# -- Options for HTML output ----------------------------------------------
117117

118118
# The theme to use for HTML and HTML Help pages. See the documentation for
119119
# a list of builtin themes.
120-
html_theme = 'default'
120+
html_theme = "default"
121121

122122
# Theme options are theme-specific and customize the look and feel of a theme
123123
# further. For a list of options available for each theme, see the
124124
# documentation.
125-
#html_theme_options = {}
125+
# html_theme_options = {}
126126

127127
# Add any paths that contain custom themes here, relative to this directory.
128-
#html_theme_path = []
128+
# html_theme_path = []
129129

130130
# The name for this set of Sphinx documents. If None, it defaults to
131131
# "<project> v<release> documentation".
132-
#html_title = None
132+
# html_title = None
133133

134134
# A shorter title for the navigation bar. Default is the same as html_title.
135-
#html_short_title = None
135+
# html_short_title = None
136136

137137
# The name of an image file (relative to this directory) to place at the top
138138
# of the sidebar.
139-
#html_logo = None
139+
# html_logo = None
140140

141141
# The name of an image file (within the static path) to use as favicon of the
142142
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
143143
# pixels large.
144-
#html_favicon = None
144+
# html_favicon = None
145145

146146
# Add any paths that contain custom static files (such as style sheets) here,
147147
# relative to this directory. They are copied after the builtin static files,
148148
# so a file named "default.css" will overwrite the builtin "default.css".
149-
html_static_path = ['_static']
149+
html_static_path = ["_static"]
150150

151151
# Add any extra paths that contain custom files (such as robots.txt or
152152
# .htaccess) here, relative to this directory. These files are copied
153153
# directly to the root of the documentation.
154-
#html_extra_path = []
154+
# html_extra_path = []
155155

156156
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
157157
# using the given strftime format.
158-
#html_last_updated_fmt = '%b %d, %Y'
158+
# html_last_updated_fmt = '%b %d, %Y'
159159

160160
# If true, SmartyPants will be used to convert quotes and dashes to
161161
# typographically correct entities.
162-
#html_use_smartypants = True
162+
# html_use_smartypants = True
163163

164164
# Custom sidebar templates, maps document names to template names.
165-
#html_sidebars = {}
165+
# html_sidebars = {}
166166

167167
# Additional templates that should be rendered to pages, maps page names to
168168
# template names.
169-
#html_additional_pages = {}
169+
# html_additional_pages = {}
170170

171171
# If false, no module index is generated.
172-
#html_domain_indices = True
172+
# html_domain_indices = True
173173

174174
# If false, no index is generated.
175-
#html_use_index = True
175+
# html_use_index = True
176176

177177
# If true, the index is split into individual pages for each letter.
178-
#html_split_index = False
178+
# html_split_index = False
179179

180180
# If true, links to the reST sources are added to the pages.
181-
#html_show_sourcelink = True
181+
# html_show_sourcelink = True
182182

183183
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
184-
#html_show_sphinx = True
184+
# html_show_sphinx = True
185185

186186
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
187-
#html_show_copyright = True
187+
# html_show_copyright = True
188188

189189
# If true, an OpenSearch description file will be output, and all pages will
190190
# contain a <link> tag referring to it. The value of this option must be the
191191
# base URL from which the finished HTML is served.
192-
#html_use_opensearch = ''
192+
# html_use_opensearch = ''
193193

194194
# This is the file name suffix for HTML files (e.g. ".xhtml").
195-
#html_file_suffix = None
195+
# html_file_suffix = None
196196

197197
# Output file base name for HTML help builder.
198-
htmlhelp_basename = 'Reusablesdoc'
198+
htmlhelp_basename = "Reusablesdoc"
199199

200200

201201
# -- Options for LaTeX output ---------------------------------------------
202202

203203
latex_elements = {
204-
# The paper size ('letterpaper' or 'a4paper').
205-
#'papersize': 'letterpaper',
206-
207-
# The font size ('10pt', '11pt' or '12pt').
208-
#'pointsize': '10pt',
209-
210-
# Additional stuff for the LaTeX preamble.
211-
#'preamble': '',
204+
# The paper size ('letterpaper' or 'a4paper').
205+
#'papersize': 'letterpaper',
206+
# The font size ('10pt', '11pt' or '12pt').
207+
#'pointsize': '10pt',
208+
# Additional stuff for the LaTeX preamble.
209+
#'preamble': '',
212210
}
213211

214212
# Grouping the document tree into LaTeX files. List of tuples
215213
# (source start file, target name, title,
216214
# author, documentclass [howto, manual, or own class]).
217215
latex_documents = [
218-
('index', 'Reusables.tex', 'Reusables Documentation',
219-
'Chris Griffith', 'manual'),
216+
("index", "Reusables.tex", "Reusables Documentation", "Chris Griffith", "manual"),
220217
]
221218

222219
# The name of an image file (relative to this directory) to place at the top of
223220
# the title page.
224-
#latex_logo = None
221+
# latex_logo = None
225222

226223
# For "manual" documents, if this is true, then toplevel headings are parts,
227224
# not chapters.
228-
#latex_use_parts = False
225+
# latex_use_parts = False
229226

230227
# If true, show page references after internal links.
231-
#latex_show_pagerefs = False
228+
# latex_show_pagerefs = False
232229

233230
# If true, show URL addresses after external links.
234-
#latex_show_urls = False
231+
# latex_show_urls = False
235232

236233
# Documents to append as an appendix to all manuals.
237-
#latex_appendices = []
234+
# latex_appendices = []
238235

239236
# If false, no module index is generated.
240-
#latex_domain_indices = True
237+
# latex_domain_indices = True
241238

242239

243240
# -- Options for manual page output ---------------------------------------
244241

245242
# One entry per manual page. List of tuples
246243
# (source start file, name, description, authors, manual section).
247-
man_pages = [
248-
('index', 'reusables', 'Reusables Documentation',
249-
['Chris Griffith'], 1)
250-
]
244+
man_pages = [("index", "reusables", "Reusables Documentation", ["Chris Griffith"], 1)]
251245

252246
# If true, show URL addresses after external links.
253-
#man_show_urls = False
247+
# man_show_urls = False
254248

255249

256250
# -- Options for Texinfo output -------------------------------------------
@@ -259,19 +253,25 @@
259253
# (source start file, target name, title, author,
260254
# dir menu entry, description, category)
261255
texinfo_documents = [
262-
('index', 'Reusables', 'Reusables Documentation',
263-
'Chris Griffith', 'Reusables', 'One line description of project.',
264-
'Miscellaneous'),
256+
(
257+
"index",
258+
"Reusables",
259+
"Reusables Documentation",
260+
"Chris Griffith",
261+
"Reusables",
262+
"One line description of project.",
263+
"Miscellaneous",
264+
),
265265
]
266266

267267
# Documents to append as an appendix to all manuals.
268-
#texinfo_appendices = []
268+
# texinfo_appendices = []
269269

270270
# If false, no module index is generated.
271-
#texinfo_domain_indices = True
271+
# texinfo_domain_indices = True
272272

273273
# How to display URL addresses: 'footnote', 'no', or 'inline'.
274-
#texinfo_show_urls = 'footnote'
274+
# texinfo_show_urls = 'footnote'
275275

276276
# If true, do not generate a @detailmenu in the "Top" node's menu.
277-
#texinfo_no_detailmenu = False
277+
# texinfo_no_detailmenu = False

0 commit comments

Comments
 (0)