Page MenuHomeDevCentral

Configure Flake8 linter for Arcanist
ClosedPublic

Authored by dereckson on Feb 14 2023, 19:19.
Tags
None
Referenced Files
F3326330: D2795.id7094.diff
Mon, Jul 8, 10:55
F3324959: D2795.id7093.diff
Mon, Jul 8, 06:09
Unknown Object (File)
Sun, Jul 7, 12:18
Unknown Object (File)
Thu, Jul 4, 14:30
Unknown Object (File)
Thu, Jul 4, 06:19
Unknown Object (File)
Wed, Jul 3, 12:47
Unknown Object (File)
Sat, Jun 29, 19:51
Unknown Object (File)
Sat, Jun 29, 05:45
Subscribers
None

Details

Summary

Allow to specify pillar and other Salt dictionaries as builtins,
so flake8 won't complain anymore those names don't exist.

Lint also the .sls #!py files, as they are written in Python too.

This currently needs to use Nasqueron version of arcanist, production branch:
https://github.com/nasqueron/arcanist/commit/15aa482eacd90fdbd238bc8b7a17c4bbba8a0bdd

Test Plan

arc lint

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Feb 14 2023, 19:20
This revision was automatically updated to reflect the committed changes.