Skip to content

Commit 4b389c7

Browse files
committed
chore: adding pre-commit configuration
Signed-off-by: arfy slowy <slowy.arfy@gmail.com>
1 parent ee0879b commit 4b389c7

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-toml
6+
- id: check-yaml
7+
- id: end-of-file-fixer
8+
types: [python]
9+
- id: trailing-whitespace
10+
- id: requirements-txt-fixer
11+
12+
- repo: https://github.com/codespell-project/codespell
13+
rev: v2.2.6
14+
hooks:
15+
- id: codespell
16+
args: [--toml, pyproject-codespell.precommit-toml]

pyproject-codespell.precommit-toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.codespell]
2+
ignore-words-list = "aci,acount,acounts,fallow,ges,hart,hist,nd,ned,ois,wqs,watermask"
3+
skip="*.csv,*.geojson,*.json,*.yml*.js,*.html,*cff,*.pdf"

requirements_docs.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ black
22
black[jupyter]
33
bump-my-version
44
codespell
5-
deadlink
65
coverage
6+
deadlink
77
ipykernel
88
livereload
9-
nbconvert
10-
nbformat
11-
pyproject-flake8
12-
pip
13-
sphinx
14-
tox
15-
twine
16-
watchdog
17-
wheel
189
mkdocs
19-
mkdocs-git-revision-date-plugin
2010
mkdocs-git-revision-date-localized-plugin
11+
mkdocs-git-revision-date-plugin
2112
mkdocs-jupyter>=0.24.0
22-
mkdocs-material>=9.1.3
13+
mkdocs-material>=9.1.3
2314
mkdocs-pdf-export-plugin
2415
mkdocstrings
2516
mkdocstrings-crystal
2617
mkdocstrings-python-legacy
18+
nbconvert
19+
nbformat
20+
pip
2721
pygments
28-
pymdown-extensions
22+
pymdown-extensions
23+
pyproject-flake8
24+
sphinx
25+
tox
26+
twine
27+
watchdog
28+
wheel

0 commit comments

Comments
 (0)