Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adding pre-commit configuration #1912

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
types: [python]
- id: trailing-whitespace
- id: requirements-txt-fixer

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--toml, pyproject-codespell.precommit-toml]
3 changes: 3 additions & 0 deletions pyproject-codespell.precommit-toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.codespell]
ignore-words-list = "aci,acount,acounts,fallow,ges,hart,hist,nd,ned,ois,wqs,watermask"
skip="*.csv,*.geojson,*.json,*.yml*.js,*.html,*cff,*.pdf"
26 changes: 13 additions & 13 deletions requirements_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ black
black[jupyter]
bump-my-version
codespell
deadlink
coverage
deadlink
ipykernel
livereload
nbconvert
nbformat
pyproject-flake8
pip
sphinx
tox
twine
watchdog
wheel
mkdocs
mkdocs-git-revision-date-plugin
mkdocs-git-revision-date-localized-plugin
mkdocs-git-revision-date-plugin
mkdocs-jupyter>=0.24.0
mkdocs-material>=9.1.3
mkdocs-material>=9.1.3
mkdocs-pdf-export-plugin
mkdocstrings
mkdocstrings-crystal
mkdocstrings-python-legacy
nbconvert
nbformat
pip
pygments
pymdown-extensions
pymdown-extensions
pyproject-flake8
sphinx
tox
twine
watchdog
wheel
Loading