Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion linters/prettier/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ lint:
- name: prettier
files:
- typescript
- yaml
- css
- postcss
- sass
Expand Down
1 change: 1 addition & 0 deletions linters/pylint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions linters/ruff/test_data/ruff_v0.2.1_format.fmt.shot
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading