From c4e3564185cde09203bf84e2f3a01891f3ae863f Mon Sep 17 00:00:00 2001 From: Tom Close Date: Tue, 24 Sep 2024 15:59:05 +1000 Subject: [PATCH 1/2] added ipython notebook --- fileformats/datascience/__init__.py | 3 ++- fileformats/datascience/scripts.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fileformats/datascience/__init__.py b/fileformats/datascience/__init__.py index cd0b4a9..ee186e4 100644 --- a/fileformats/datascience/__init__.py +++ b/fileformats/datascience/__init__.py @@ -6,7 +6,7 @@ DatFile, Hdf5, ) -from .scripts import RFile +from .scripts import RFile, IPythonNotebook from .object_serialization import ( Pickle, Pickle__Gzip, @@ -20,6 +20,7 @@ "DatFile", "Hdf5", "RFile", + "IPythonNotebook", "Pickle", "Pickle__Gzip", ] diff --git a/fileformats/datascience/scripts.py b/fileformats/datascience/scripts.py index 537ce0d..6894160 100644 --- a/fileformats/datascience/scripts.py +++ b/fileformats/datascience/scripts.py @@ -9,3 +9,9 @@ class RFile(Script): """R statistical package script file""" ext = ".r" + + +class IPythonNotebook(Script): + """Jupyter notebook""" + + ext = ".ipynb" From 5d15b708eccd5f984b431ebc23c339d86ec52d97 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 3 Oct 2024 17:23:52 +1000 Subject: [PATCH 2/2] updated flake version in pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c75cf65..9b18d92 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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