Moo-Ack-Productions / bpy-build

A build sytem to make building Blender addons 10 times easier
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Option to silence certain lint warnings #2

Closed TheDuckCow closed 1 year ago

TheDuckCow commented 1 year ago

Auto lint feature is great - though with a million and one W191 errors, it makes it basically noisy and useless for a repo that has tabs as a convention. Would be great to have a config somehow, like most linters do, to specify what to ignore. Even better if that can be part of the yaml file, since we'd expect all developers for a repo should be following the same linting standards.

TheDuckCow commented 1 year ago

I should add, it seems like it actually is attempting to ignore a rule actually. See my console output:

(venv) mcprep $ bpy-addon-build -b dev
['flake8 --extend-ignore W191 .']
...
./__init__.py:37:80: E501 line too long (80 > 79 characters)
./__init__.py:38:80: E501 line too long (90 > 79 characters)
./__init__.py:42:1: W191 indentation contains tabs
./__init__.py:43:1: W191 indentation contains tabs
./__init__.py:44:1: W191 indentation contains tabs

Is it picking this up from my local config perhaps..? Though my other comment stands around wanting to have consistent linting for all developers as much as possible (and thus to consider we have linting ignores read from the build yaml).

StandingPadAnimations commented 1 year ago

Linting is not a bpy-addon-build feature, it's part of the build config for the addon. For MCprep, it's in the default build option