Skip to content

Commit

Permalink
Merge pull request #10 from jlaehne/black
Browse files Browse the repository at this point in the history
Reformat using black formatting
  • Loading branch information
ericpre committed Aug 15, 2022
2 parents 77e79b0 + 892bf4e commit 4ff3f4a
Show file tree
Hide file tree
Showing 72 changed files with 12,742 additions and 10,208 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@stable
24 changes: 12 additions & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

# -- Project information -----------------------------------------------------

project = 'RosettaSciIO'
copyright = '2022, HyperSpy Developers'
author = 'HyperSpy Developers'
project = "RosettaSciIO"
copyright = "2022, HyperSpy Developers"
author = "HyperSpy Developers"


# -- General configuration ---------------------------------------------------
Expand All @@ -28,9 +28,9 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.githubpages',
'sphinx.ext.intersphinx',
'sphinxcontrib.towncrier',
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"sphinxcontrib.towncrier",
]

intersphinx_mapping = {
Expand All @@ -40,25 +40,25 @@
}

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

# 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"]


# -- 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 = 'pydata_sphinx_theme'
html_theme = "pydata_sphinx_theme"

# 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"]

html_theme_options = {
"icon_links": [
Expand All @@ -81,7 +81,7 @@
"icon": "",
# The type of image to be used (see below for details)
"type": "local",
}
},
],
"logo": {
"text": "RosettaSciIO",
Expand All @@ -104,7 +104,7 @@
# -- Options for towncrier_draft extension -----------------------------------

# Options: draft/sphinx-version/sphinx-release
towncrier_draft_autoversion_mode = 'draft'
towncrier_draft_autoversion_mode = "draft"
towncrier_draft_include_empty = False
towncrier_draft_working_directory = ".."

Expand Down
4 changes: 1 addition & 3 deletions rsciio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
for sub, _, _ in os.walk(here):
specsf = os.path.join(sub, "specifications.yaml")
if os.path.isfile(specsf):
with open(specsf, 'r') as stream:
with open(specsf, "r") as stream:
specs = yaml.safe_load(stream)
specs["api"] = "rsciio.%s.api" % os.path.split(sub)[1]
IO_PLUGINS.append(specs)


0 comments on commit 4ff3f4a

Please sign in to comment.