Skip to content

Commit

Permalink
Merge pull request #6 from ArcanaFramework/more-formats
Browse files Browse the repository at this point in the history
Adds ipython notebook format
  • Loading branch information
tclose authored Oct 17, 2024
2 parents 6d3f768 + 5d15b70 commit 9dc8c1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
args:
- --ignore-words=.codespell-ignorewords
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
3 changes: 2 additions & 1 deletion fileformats/datascience/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
DatFile,
Hdf5,
)
from .scripts import RFile
from .scripts import RFile, IPythonNotebook
from .object_serialization import (
Pickle,
Pickle__Gzip,
Expand All @@ -20,6 +20,7 @@
"DatFile",
"Hdf5",
"RFile",
"IPythonNotebook",
"Pickle",
"Pickle__Gzip",
]
6 changes: 6 additions & 0 deletions fileformats/datascience/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ class RFile(Script):
"""R statistical package script file"""

ext = ".r"


class IPythonNotebook(Script):
"""Jupyter notebook"""

ext = ".ipynb"

0 comments on commit 9dc8c1b

Please sign in to comment.