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 db07254 commit 42d2b70
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 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.10.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']
9 changes: 5 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-

pytest==6.2.5
flake8==4.0.1
click==8.0.4
black==22.10.0
click==8.0.4
flake8==4.0.1
ipykernel==6.9.1
twine==4.0.1
pre-commit
pytest==6.2.5
sphinx
sphinx-press-theme==0.8.0
twine==4.0.1

0 comments on commit 42d2b70

Please sign in to comment.