Run PyLint against Salt.
(session)
| 1664 | |
| 1665 | @nox.session(python=False, name="lint-salt-pre-commit") |
| 1666 | def lint_salt_pre_commit(session): |
| 1667 | """ |
| 1668 | Run PyLint against Salt. |
| 1669 | """ |
| 1670 | flags = ["--disable=I"] |
| 1671 | if session.posargs: |
| 1672 | paths = session.posargs |
| 1673 | else: |
| 1674 | paths = ["setup.py", "noxfile.py", "salt/", "tools/"] |
| 1675 | _lint_pre_commit(session, ".pylintrc", flags, paths) |
| 1676 | |
| 1677 | |
| 1678 | @nox.session(python=False, name="lint-tests-pre-commit") |
nothing calls this directly
no test coverage detected