Sam Park 2020-01-18 11:29:05 -08:00
parent 31853d6c43
commit 513a24cde9
No known key found for this signature in database
GPG key ID: 5CA023C8A1C73D5F
5 changed files with 103 additions and 0 deletions

View file

@ -64,6 +64,20 @@
entry: check-merge-conflict
language: python
types: [text]
- id: check-missing-inits
name: Find directories with missing __init__ files
description: |-
Verify that all Python directories contain an __init__.py
Although __init__.py files are not required on Python 3.3+, omitting them in
one directory while having them in another directory will break in confusing
and unexpected ways:
http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-init-py-trap
entry: check-missing-inits
language: python
require_serial: true
files: .*\.py$
- id: check-symlinks
name: Check for broken symlinks
description: Checks for symlinks which do not point to anything.