Skip to content

Commit f35ac68

Browse files
committed
Initial Commit for Pre-commit
This is an initial commit for pre-commit Signed-off-by: David ML Brown Jr <[email protected]>
1 parent d790f15 commit f35ac68

File tree

164 files changed

+792530
-430800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+792530
-430800
lines changed

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ repos:
1717
- id: check-symlinks
1818
- id: mixed-line-ending
1919
- id: name-tests-test
20+
exclude: tests/test_data
21+
args:
22+
- --pytest-test-first
2023
- id: check-json
2124
- id: pretty-format-json
2225
args:
@@ -35,4 +38,5 @@ repos:
3538
rev: v1.3.1
3639
hooks:
3740
- id: remove-tabs
41+
exclude: '(\.tsv|Makefile)$'
3842
- id: remove-crlf

.travis.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
language: python
2-
python:
3-
- 3.6
4-
- 3.7
5-
- 3.8
6-
before_install:
7-
- python --version
8-
- pip install -U pip
9-
- pip install -U pytest
10-
- pip install -U importlib_metadata
11-
- pip install codecov
12-
install:
13-
- pip install ".[test]" . # install package + test dependencies
14-
script: pytest # run tests
15-
after_success:
16-
- codecov # submit coverage
1+
language: python
2+
python:
3+
- 3.6
4+
- 3.7
5+
- 3.8
6+
before_install:
7+
- python --version
8+
- pip install -U pip
9+
- pip install -U pytest
10+
- pip install -U importlib_metadata
11+
- pip install codecov
12+
install:
13+
- pip install ".[test]" . # install package + test dependencies
14+
script: pytest # run tests
15+
after_success:
16+
- codecov # submit coverage

README.rst

100755100644
+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Installation
3636
ModelSEEDpy will soon be installable via the ``PyPI`` channel::
3737

3838
pip install modelseedpy
39-
39+
4040
but, until then, the repository must cloned::
4141

4242
git clone https://github.com/ModelSEED/ModelSEEDpy.git
@@ -45,13 +45,13 @@ and then locally installed with ``pip``::
4545

4646
cd path/to/modelseedpy
4747
pip install .
48-
48+
4949
The associated ModelSEED Database, which is required for a few packages, is simply downloaded by cloning the GitHub repository::
5050

5151
git clone https://github.com/ModelSEED/ModelSEEDDatabase.git
52-
53-
and the path to this repository is passed as an argument to the corresponding packages.
54-
52+
53+
and the path to this repository is passed as an argument to the corresponding packages.
54+
5555
**Windows users** must separately install the ``pyeda`` module: 1) download the appropriate wheel for your Python version from `this website <https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyeda>`_ ; and 2) install the wheel through the following commands in a command prompt/powershell console::
5656

5757
cd path/to/pyeda/wheel

docs/conf.py

+68-68
Original file line numberDiff line numberDiff line change
@@ -16,209 +16,203 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.insert(0, os.path.abspath('.'))
19+
# sys.path.insert(0, os.path.abspath('.'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

2323
# If your documentation needs a minimal Sphinx version, state it here.
24-
#needs_sphinx = '1.0'
24+
# needs_sphinx = '1.0'
2525

2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2828
extensions = []
2929

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

3333
# The suffix of source filenames.
34-
source_suffix = '.rst'
34+
source_suffix = ".rst"
3535

3636
# The encoding of source files.
37-
#source_encoding = 'utf-8-sig'
37+
# source_encoding = 'utf-8-sig'
3838

3939
# The master toctree document.
40-
master_doc = 'index'
40+
master_doc = "index"
4141

4242
# General information about the project.
43-
project = u'sample'
44-
copyright = u'2012, Kenneth Reitz'
43+
project = "sample"
44+
copyright = "2012, Kenneth Reitz"
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = 'v0.0.1'
51+
version = "v0.0.1"
5252
# The full version, including alpha/beta/rc tags.
53-
release = 'v0.0.1'
53+
release = "v0.0.1"
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.
57-
#language = None
57+
# language = None
5858

5959
# There are two options for replacing |today|: either, you set today to some
6060
# non-false value, then it is used:
61-
#today = ''
61+
# today = ''
6262
# Else, today_fmt is used as the format for a strftime call.
63-
#today_fmt = '%B %d, %Y'
63+
# today_fmt = '%B %d, %Y'
6464

6565
# List of patterns, relative to source directory, that match files and
6666
# directories to ignore when looking for source files.
67-
exclude_patterns = ['_build']
67+
exclude_patterns = ["_build"]
6868

6969
# The reST default role (used for this markup: `text`) to use for all documents.
70-
#default_role = None
70+
# default_role = None
7171

7272
# If true, '()' will be appended to :func: etc. cross-reference text.
73-
#add_function_parentheses = True
73+
# add_function_parentheses = True
7474

7575
# If true, the current module name will be prepended to all description
7676
# unit titles (such as .. function::).
77-
#add_module_names = True
77+
# add_module_names = True
7878

7979
# If true, sectionauthor and moduleauthor directives will be shown in the
8080
# output. They are ignored by default.
81-
#show_authors = False
81+
# show_authors = False
8282

8383
# The name of the Pygments (syntax highlighting) style to use.
84-
pygments_style = 'sphinx'
84+
pygments_style = "sphinx"
8585

8686
# A list of ignored prefixes for module index sorting.
87-
#modindex_common_prefix = []
87+
# modindex_common_prefix = []
8888

8989

9090
# -- Options for HTML output ---------------------------------------------------
9191

9292
# The theme to use for HTML and HTML Help pages. See the documentation for
9393
# a list of builtin themes.
94-
html_theme = 'default'
94+
html_theme = "default"
9595

9696
# Theme options are theme-specific and customize the look and feel of a theme
9797
# further. For a list of options available for each theme, see the
9898
# documentation.
99-
#html_theme_options = {}
99+
# html_theme_options = {}
100100

101101
# Add any paths that contain custom themes here, relative to this directory.
102-
#html_theme_path = []
102+
# html_theme_path = []
103103

104104
# The name for this set of Sphinx documents. If None, it defaults to
105105
# "<project> v<release> documentation".
106-
#html_title = None
106+
# html_title = None
107107

108108
# A shorter title for the navigation bar. Default is the same as html_title.
109-
#html_short_title = None
109+
# html_short_title = None
110110

111111
# The name of an image file (relative to this directory) to place at the top
112112
# of the sidebar.
113-
#html_logo = None
113+
# html_logo = None
114114

115115
# The name of an image file (within the static path) to use as favicon of the
116116
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
117117
# pixels large.
118-
#html_favicon = None
118+
# html_favicon = None
119119

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

125125
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126126
# using the given strftime format.
127-
#html_last_updated_fmt = '%b %d, %Y'
127+
# html_last_updated_fmt = '%b %d, %Y'
128128

129129
# If true, SmartyPants will be used to convert quotes and dashes to
130130
# typographically correct entities.
131-
#html_use_smartypants = True
131+
# html_use_smartypants = True
132132

133133
# Custom sidebar templates, maps document names to template names.
134-
#html_sidebars = {}
134+
# html_sidebars = {}
135135

136136
# Additional templates that should be rendered to pages, maps page names to
137137
# template names.
138-
#html_additional_pages = {}
138+
# html_additional_pages = {}
139139

140140
# If false, no module index is generated.
141-
#html_domain_indices = True
141+
# html_domain_indices = True
142142

143143
# If false, no index is generated.
144-
#html_use_index = True
144+
# html_use_index = True
145145

146146
# If true, the index is split into individual pages for each letter.
147-
#html_split_index = False
147+
# html_split_index = False
148148

149149
# If true, links to the reST sources are added to the pages.
150-
#html_show_sourcelink = True
150+
# html_show_sourcelink = True
151151

152152
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
153-
#html_show_sphinx = True
153+
# html_show_sphinx = True
154154

155155
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
156-
#html_show_copyright = True
156+
# html_show_copyright = True
157157

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

163163
# This is the file name suffix for HTML files (e.g. ".xhtml").
164-
#html_file_suffix = None
164+
# html_file_suffix = None
165165

166166
# Output file base name for HTML help builder.
167-
htmlhelp_basename = 'sampledoc'
167+
htmlhelp_basename = "sampledoc"
168168

169169

170170
# -- Options for LaTeX output --------------------------------------------------
171171

172172
latex_elements = {
173-
# The paper size ('letterpaper' or 'a4paper').
174-
#'papersize': 'letterpaper',
175-
176-
# The font size ('10pt', '11pt' or '12pt').
177-
#'pointsize': '10pt',
178-
179-
# Additional stuff for the LaTeX preamble.
180-
#'preamble': '',
173+
# The paper size ('letterpaper' or 'a4paper').
174+
#'papersize': 'letterpaper',
175+
# The font size ('10pt', '11pt' or '12pt').
176+
#'pointsize': '10pt',
177+
# Additional stuff for the LaTeX preamble.
178+
#'preamble': '',
181179
}
182180

183181
# Grouping the document tree into LaTeX files. List of tuples
184182
# (source start file, target name, title, author, documentclass [howto/manual]).
185183
latex_documents = [
186-
('index', 'sample.tex', u'sample Documentation',
187-
u'Kenneth Reitz', 'manual'),
184+
("index", "sample.tex", "sample Documentation", "Kenneth Reitz", "manual"),
188185
]
189186

190187
# The name of an image file (relative to this directory) to place at the top of
191188
# the title page.
192-
#latex_logo = None
189+
# latex_logo = None
193190

194191
# For "manual" documents, if this is true, then toplevel headings are parts,
195192
# not chapters.
196-
#latex_use_parts = False
193+
# latex_use_parts = False
197194

198195
# If true, show page references after internal links.
199-
#latex_show_pagerefs = False
196+
# latex_show_pagerefs = False
200197

201198
# If true, show URL addresses after external links.
202-
#latex_show_urls = False
199+
# latex_show_urls = False
203200

204201
# Documents to append as an appendix to all manuals.
205-
#latex_appendices = []
202+
# latex_appendices = []
206203

207204
# If false, no module index is generated.
208-
#latex_domain_indices = True
205+
# latex_domain_indices = True
209206

210207

211208
# -- Options for manual page output --------------------------------------------
212209

213210
# One entry per manual page. List of tuples
214211
# (source start file, name, description, authors, manual section).
215-
man_pages = [
216-
('index', 'sample', u'sample Documentation',
217-
[u'Kenneth Reitz'], 1)
218-
]
212+
man_pages = [("index", "sample", "sample Documentation", ["Kenneth Reitz"], 1)]
219213

220214
# If true, show URL addresses after external links.
221-
#man_show_urls = False
215+
# man_show_urls = False
222216

223217

224218
# -- Options for Texinfo output ------------------------------------------------
@@ -227,16 +221,22 @@
227221
# (source start file, target name, title, author,
228222
# dir menu entry, description, category)
229223
texinfo_documents = [
230-
('index', 'sample', u'sample Documentation',
231-
u'Kenneth Reitz', 'sample', 'One line description of project.',
232-
'Miscellaneous'),
224+
(
225+
"index",
226+
"sample",
227+
"sample Documentation",
228+
"Kenneth Reitz",
229+
"sample",
230+
"One line description of project.",
231+
"Miscellaneous",
232+
),
233233
]
234234

235235
# Documents to append as an appendix to all manuals.
236-
#texinfo_appendices = []
236+
# texinfo_appendices = []
237237

238238
# If false, no module index is generated.
239-
#texinfo_domain_indices = True
239+
# texinfo_domain_indices = True
240240

241241
# How to display URL addresses: 'footnote', 'no', or 'inline'.
242-
#texinfo_show_urls = 'footnote'
242+
# texinfo_show_urls = 'footnote'

docs/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ Indices and tables
1919
* :ref:`genindex`
2020
* :ref:`modindex`
2121
* :ref:`search`
22-

0 commit comments

Comments
 (0)