Skip to content
Open
Changes from 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ repos:
rev: 20.8b1
hooks:
- id: black
description: Format Python code
additional_dependencies: ["click==8.0.4"]

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.4.2
hooks:
- id: isort
description: Group and sort Python imports
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also be able to get rid of isort if we go with ruff

args: ["--profile", "black"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
description: Perform static type analysis of Python code
name: mypy-pyMoist
args: [
--ignore-missing-imports,
Expand All @@ -35,6 +38,10 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -44,11 +51,12 @@ repos:
rev: 3.9.2
hooks:
- id: flake8
description: Check Python code for correctness, consistency and adherence to best practices
name: flake8
language_version: python3
args: [
"--exclude=docs",
"--ignore=W503,E302,E203,F841",
"--ignore=W503,F841",
"--max-line-length=88"
]
exclude: |
Expand All @@ -63,3 +71,22 @@ repos:
"--exclude=docs",
"--ignore=W503,E302,E203,F841,F401",
"--max-line-length=88",]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: codespell
description: Check for spelling errors
entry: codespell
args: ["--ignore-words-list", "aare"]

- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
name: pydocstyle
description: Check docstrings in Python code for compliance with conventions
entry: pydocstyle
types: [python]
args: ["--ignore=D101,D102,D103,D105,D107,D203,D213,D406,D407"]