Skip to content

Commit

Permalink
Move the pre-commit tests to a subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 9, 2023
1 parent 570e38d commit 4ccd3c6
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/using-pre-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ repos:
language_version: python3
```

Tested examples of how to use the pre-commit hook are available in our [tests](https://github.com/mwouts/jupytext/tree/main/tests) -
see for instance [test_pre_commit_1_sync_with_config.py](https://github.com/mwouts/jupytext/blob/main/tests/test_pre_commit_1_sync_with_config.py).
Tested examples of how to use the pre-commit hook are available in our [tests](https://github.com/mwouts/jupytext/tree/main/tests/functional/pre-commit) -
see for instance [test_pre_commit_1_sync_with_config.py](https://github.com/mwouts/jupytext/blob/main/tests/functional/pre-commit/test_pre_commit_1_sync_with_config.py).
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from jupytext.cli import jupytext
from jupytext.compare import compare_cells

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from jupytext import read, write
from jupytext.cli import jupytext

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from jupytext import TextFileContentsManager, read

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from jupytext import TextFileContentsManager
from jupytext.compare import compare_notebooks

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from jupytext import read, write
from jupytext.cli import jupytext

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from jupytext import read, write

from .utils import (
from ...utils import (
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from jupytext import read, write

from .utils import (
from ...utils import (
requires_user_kernel_python3,
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from jupytext import read, write

from .utils import (
from ...utils import (
requires_pandoc,
skip_pre_commit_tests_on_windows,
skip_pre_commit_tests_when_jupytext_folder_is_not_a_git_repo,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from jupytext.cli import jupytext, system
from jupytext.compare import compare_cells, compare_notebooks

from .utils import (
from ...utils import (
list_notebooks,
requires_black,
requires_flake8,
Expand Down

0 comments on commit 4ccd3c6

Please sign in to comment.