Skip to content

Commit

Permalink
Add pre-commit configuration (#1912)
Browse files Browse the repository at this point in the history
Signed-off-by: arfy slowy <slowy.arfy@gmail.com>
  • Loading branch information
slowy07 authored Feb 19, 2024
1 parent ee0879b commit 5523f36
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
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

0 comments on commit 5523f36

Please sign in to comment.