Skip to content
Snippets Groups Projects
Commit e65a3a5b authored by Samuel Schmidt's avatar Samuel Schmidt
Browse files

pre-commit use remote repos, flake8 config ...

parent 0c104060
Branches
No related tags found
No related merge requests found
venv
[flake8]
max-line-length = 88
extend-ignore = E203
venv # Data
*.zip
*.7z
*.csv
*.txt
*.svg
*.emf
*.png
# Visual Studio Code
.vscode/*
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
repos: repos:
- repo: local - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks: hooks:
- id: isort - id: trailing-whitespace
name: isort - id: end-of-file-fixer
entry: pipenv run isort - id: check-docstring-first
language: system - repo: https://github.com/pycqa/flake8
types: [python] rev: 6.0.0
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: check-yaml
language: system
types: [yaml]
- id: end-of-file-fixer
name: Fix End of Files
entry: end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
require_serial: true
- id: reorder-python-imports
name: Reorder python imports
entry: reorder-python-imports
language: system
types: [python]
args: [--application-directories=src]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- repo: https://github.com/prettier/pre-commit
rev: v2.1.2
hooks: hooks:
- id: prettier - id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/ambv/black
rev: 22.10.0
hooks:
- id: black
...@@ -6,9 +6,9 @@ requires = [ ...@@ -6,9 +6,9 @@ requires = [
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[project] [project]
name = "{{cookiecutter.project_name}}" name = "project_name"
authors = [ authors = [
{name = "{{cookiecutter.author_name}}"}, {name = "Manu Musterperson"},
] ]
readme = "README.md" readme = "README.md"
requires-python = ">=3.7" requires-python = ">=3.7"
...@@ -17,11 +17,7 @@ classifiers = [ ...@@ -17,11 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
] ]
dependencies = [ dependencies = [
"flake8>=3.8.4",
"black>=20.8b1",
"pre-commit>=2.8.2", "pre-commit>=2.8.2",
"pre-commit-hooks>=3.3.0",
"reorder-python-imports>=2.3.6",
"plotly>=5.14.1", "plotly>=5.14.1",
"opencv-python>=4.7.0.72", "opencv-python>=4.7.0.72",
'importlib-metadata; python_version<"3.8"', 'importlib-metadata; python_version<"3.8"',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment