Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Apr 20, 2023
1 parent eff86cd commit 17136d9
Show file tree
Hide file tree
Showing 16 changed files with 140 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Fly Deploy
concurrency: deploy
on:
on:
workflow_run:
workflows:
- CI
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.262'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ whoosh = "*"
[dev-packages]
black = "*"
ruff = "*"
pre-commit = "*"

[requires]
python_version = "3.8"
111 changes: 110 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pylinks/main/static/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
})


}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
.on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@
})
})

}(window.jQuery);
}(window.jQuery);
2 changes: 1 addition & 1 deletion pylinks/main/static/js/bootstrap/bootstrap-transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@

})

}(window.jQuery);
}(window.jQuery);

0 comments on commit 17136d9

Please sign in to comment.