Commit 66aa9365 authored by Adrian Pino's avatar Adrian Pino
Browse files

Add pre commit hook using isort, black, flake

parent 28810abe
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
[flake8]
max-line-length = 88
 No newline at end of file
max-line-length = 100
max-complexity = 18
select = B,C,E,F,W,T4,B9
ignore = E203, E266, E501, W503
per-file-ignores =
    __init__.py:F401
exclude =
    .git,
    __pycache__,
    build,
    dist,
    .venv,
    .tox,
    .mypy_cache,
    .pytest_cache
extend-ignore = E203
extend-select = B950
+41 −0
Original line number Diff line number Diff line
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
    -   id: check-added-large-files
    -   id: check-executables-have-shebangs
#   -   id: check-yaml
    -   id: end-of-file-fixer
        exclude: ^caas/cfg/
    -   id: fix-encoding-pragma
    -   id: requirements-txt-fixer
    -   id: trailing-whitespace
    # https://stackoverflow.com/a/76200334/2186237
-   repo: https://github.com/pycqa/isort
    rev: 6.0.1
    hooks:
    -   id: isort
        name: isort (python)
        args: ["--profile", "black", "--filter-files"]
-   repo: https://github.com/psf/black
    rev: 25.1.0
    hooks:
    -   id: black
        args:
            # - "--check"
            - "--target-version=py38"
            - "--target-version=py39"
            - "--target-version=py310"
            - "--target-version=py311"
            - "--target-version=py312"
-   repo: https://github.com/pycqa/flake8
    rev: 7.0.0
    hooks:
    -   id: flake8
        additional_dependencies: []
#-   repo: https://github.com/hhatto/autopep8
#    rev: v2.0.4
#    hooks:
#    -   id: autopep8
+61 −0
Original line number Diff line number Diff line
annotated-types==0.7.0
asttokens==3.0.0
attrs==25.3.0
backcall==0.2.0
beautifulsoup4==4.13.3
bleach==6.2.0
build==1.2.2.post1
certifi==2025.1.31
cfgv==3.4.0
charset-normalizer==3.4.1
click==8.1.8
colorlog==6.8.2
coverage==7.7.1
decorator==5.2.1
defusedxml==0.7.1
distlib==0.3.9
docopt==0.6.2
exceptiongroup==1.2.2
executing==2.2.0
fastjsonschema==2.21.1
filelock==3.18.0
identify==2.6.10
idna==3.10
iniconfig==2.0.0
ipython==8.12.3
jedi==0.19.2
Jinja2==3.1.6
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyterlab_pygments==0.3.0
MarkupSafe==3.0.2
matplotlib-inline==0.1.7
mistune==3.1.3
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nodeenv==1.9.1
packaging==24.2
pandocfilters==1.5.1
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pip-tools==7.4.1
pipreqs==0.5.0
platformdirs==4.3.7
pluggy==1.5.0
pre_commit==4.2.0
prompt_toolkit==3.0.50
ptyprocess==0.7.0
pure_eval==0.2.3
pydantic==2.10.6
pydantic_core==2.27.2
Pygments==2.19.1
pyproject_hooks==1.2.0
pytest==8.3.2
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
PyYAML==6.0.2
pyzmq==26.4.0
referencing==0.36.2
requests==2.32.3
rpds-py==0.24.0
six==1.17.0
soupsieve==2.6
stack-data==0.6.3
tinycss2==1.4.0
tomli==2.2.1
tornado==6.4.2
traitlets==5.14.3
typing_extensions==4.12.2
urllib3==2.3.0
virtualenv==20.30.0
wcwidth==0.2.13
webencodings==0.5.1
yarg==0.1.9