diff --git a/linters/prettier/plugin.yaml b/linters/prettier/plugin.yaml index f01f16da8..283c7ab65 100644 --- a/linters/prettier/plugin.yaml +++ b/linters/prettier/plugin.yaml @@ -11,7 +11,6 @@ lint: - name: prettier files: - typescript - - yaml - css - postcss - sass diff --git a/linters/pylint/plugin.yaml b/linters/pylint/plugin.yaml index def3cfe4b..4b870baec 100644 --- a/linters/pylint/plugin.yaml +++ b/linters/pylint/plugin.yaml @@ -12,6 +12,7 @@ lint: files: [python] description: Static code analysis for Python commands: + # lint should not be flaky - name: lint # Custom parser type defined in the trunk cli to handle pylint's JSON output. output: pylint diff --git a/linters/ruff/test_data/ruff_v0.2.1_format.fmt.shot b/linters/ruff/test_data/ruff_v0.2.1_format.fmt.shot index 66641ba30..328b072aa 100644 --- a/linters/ruff/test_data/ruff_v0.2.1_format.fmt.shot +++ b/linters/ruff/test_data/ruff_v0.2.1_format.fmt.shot @@ -6,6 +6,7 @@ exports[`Testing formatter ruff test format 1`] = ` # A malindented comment if __name__ == "__main__": a = 4 + 1 + b = 2 * 7 c = [1, 2, 3] print(a / b) diff --git a/tests/index.ts b/tests/index.ts index 3a470bc8c..2fdd57054 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -692,6 +692,12 @@ export const linterCheckTest = ({ postCheck?: TestCallback; manualVersionReplacer?: (version: string) => string; }) => { + if (linterName.startsWith("pretty")) { + throw new Error("`linterCheckTest` is not supported for pretty linters"); + } + if (linterName.startsWith("bio")) { + throw new Error("`linterCheckTest` is not supported for bio linters"); + } // Step 1a: Detect test files to run const linterTestTargets = detectTestTargets(dirname, namedTestPrefixes);