Skip to content

Commit

Permalink
Mod: Appply pre-commit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Jan 26, 2024
1 parent 65c9ce3 commit 0e1d3b3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# exclude: ""

repos:
# Format Code
- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black

# Sort imports
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]

# Formatting, Whitespace, etc
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- id: flake8
# args: ['--ignore=E203,E501,F811,E712,W503']
args: ['--config=.flake8']
11 changes: 6 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-

pytest==7.1.2
flake8==4.0.1
black==22.8.0
scikit-image==0.19.2
matplotlib==3.5.2
flake8==4.0.1
ipykernel==6.9.1
twine==4.0.1
matplotlib==3.5.2
pre-commit
pytest==7.1.2
scikit-image==0.19.2
sphinx==7.2.6
sphinx-press-theme==0.8.0
twine==4.0.1

0 comments on commit 0e1d3b3

Please sign in to comment.