Skip to content

fzimmermann89/check_all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check init.py all

This is a script and pre-commit hook to check and update the __all__ variable in __init__.py files.

Installation in pre-commit

  1. Install pre-commit:

    pip install pre-commit
  2. Install the pre-commit hooks:

    pre-commit install
  3. Add the hook to your .pre-commit-config.yaml file:

    repos:
      - repo: https://github.com/yourusername/your-repo
        rev: master
        hooks:
          - id: check-init-all

Now, on each commit, the hook will automatically check your __init__.py files.

Arguments

  • --line-length (default 120) set maximum line length
  • --double-quotes use double quotes instead of single quotes

About

Pre-commit hook to check if __all__ is populated correctly in __init__.py

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages