feat(project_setup): feat: Initialize project

Setting up python project files using poetry. A basic environment
is installed including dash for the app that will be implemented
later.

Also contains several dev tools, including pre-commit hooks.
This commit is contained in:
Tobias Quadfasel
2024-08-29 16:02:51 +02:00
parent 9377c07044
commit 1696840db8
4 changed files with 1706 additions and 0 deletions

74
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,74 @@
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-yaml
- id: sort-simple-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3.12
args:
- --config=pyproject.toml
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
language_version: python3.12
args:
- --max-line-length=100
- --extend-ignore=E203
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
additional_dependencies: [
types-requests,
]
args:
- --config=pyproject.toml
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place, --black]
- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: numpydoc-validation
- repo: https://github.com/JangasCodingplace/commit-prefix-pre-commit
rev: v0.0.3-beta
hooks:
- id: commit-prefix
args:
- --allow-main=true
stages: [ commit-msg ]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: [ ]