IntelLabs / MART

Modular Adversarial Robustness Toolkit
BSD 3-Clause "New" or "Revised" License
16 stars 0 forks source link

Upgrade flake8 to 7.0.0 in pre-commit #245

Closed mzweilin closed 7 months ago

mzweilin commented 7 months ago

What does this PR do?

The current flake8 6.0.0 we use in pre-commit requires space after : in strings when running in Python 3.12. So we upgrade to the latest 7.0.0.

flake8 7.0.0 does not allow comparing type(obj), so we changed it to isinstance(obj, *).

Type of change

Please check all relevant options.

Testing

Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

Before submitting

Did you have fun?

Make sure you had fun coding đŸ™ƒ