Skip to content

Commit

Permalink
ci: add strip metadata pre-commit phase
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jan 28, 2025
1 parent afe89c1 commit f2486fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 39 deletions.
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ repos:
rev: v0.1.6
hooks:
- id: ruff
fail_fast: true
fail_fast: true
- repo: local
hooks:
- id: nbconvert
name: nbconvert
entry: python3 -m jupyter nbconvert --ClearMetadataPreprocessor.enabled=True --inplace
language: system
files: \.ipynb$
require_serial: true
45 changes: 7 additions & 38 deletions Notebooks/2_Peculiar_galaxies__first_steps_with_MOCs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"scrolled": true,
"tags": []
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -216,12 +213,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"scrolled": true,
"tags": [
"output_scroll"
]
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -303,13 +295,8 @@
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"scrolled": true,
"tags": [
"output_scroll"
]
},
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -451,9 +438,7 @@
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -585,9 +570,7 @@
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -690,22 +673,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "cds-tutos-dev",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"name": "python"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f2486fa

Please sign in to comment.