DjangoAdminHackers / django-linkcheck

An app that will analyze and report on links in any model that you register with it. Links can be bare (urls or image and file fields) or embedded in HTML (linkcheck handles the parsing). It's fairly easy to override methods of the Linkcheck object should you need to do anything more complicated (like generate URLs from slug fields etc).
BSD 3-Clause "New" or "Revised" License
75 stars 26 forks source link

`flake8`: Ignore long lines in migrations directory #140

Closed timobrembeck closed 1 year ago

timobrembeck commented 1 year ago

In #135, I noticed that Django's generated migrations might have way longer lines than 120 chars. Without an automated formatter, I think it's better to disable this warning than having to manually add a bunch of line breaks. Not sure if it makes sense to ignore the whole dir for flake, or to just disable the line length limit.

claudep commented 1 year ago

What about reformatting migrations? Recent Django migrations do wrap long lines when a formatter is available.

timobrembeck commented 1 year ago

Sorry, I wasn't aware of that option. Is there a specific dependency which has to be installed, or should I just use third-party formatter from my IDE to wrap the lines?