Skip to content

akx/django-lint

Repository files navigation

django-lint

Statically analyze Django projects for common problems.

Checkers

admin-search-fields

Check that admin classes define search_fields

field-verbose-name-capitalization

Check that field verbose_names are not capitalized

model-explicit-str

Check that all Models have str.

model-verbose-name-capitalization

Check that model verbose_names are not capitalized

related-field-explicit-on-delete

Check that all RelatedFields (ForeignKeys, ManyToManyFields and OneToOneFields) have an explicit on_delete clause.

related-field-explicit-related-name

Check that all RelatedFields (ForeignKeys, ManyToManyFields and OneToOneFields) have an explicit related_name.

Prior Art

About

Statically analyze Django projects for common problems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages