Skip to content

Commit

Permalink
feat(ruff): add issue_url_format (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin authored Oct 2, 2023
1 parent f408faa commit 9ea8a59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions linters/ruff/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ lint:
- tox.ini
known_good_version: 0.0.250
suggest_if: files_present
issue_url_format: https://docs.astral.sh/ruff/rules/#{}
version_command:
parse_regex: ruff ${semver}
run: ruff --version
Expand Down
3 changes: 3 additions & 0 deletions linters/ruff/test_data/ruff_v0.0.250_basic.check.shot
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`Testing linter ruff test basic 1`] = `
"code": "E402",
"column": "1",
"file": "test_data/basic.in.py",
"issueUrl": "https://docs.astral.sh/ruff/rules/#E402",
"level": "LEVEL_HIGH",
"line": "7",
"linter": "ruff",
Expand Down Expand Up @@ -36,6 +37,7 @@ exports[`Testing linter ruff test basic 1`] = `
"code": "F401",
"column": "8",
"file": "test_data/basic.in.py",
"issueUrl": "https://docs.astral.sh/ruff/rules/#F401",
"level": "LEVEL_HIGH",
"line": "7",
"linter": "ruff",
Expand All @@ -53,6 +55,7 @@ exports[`Testing linter ruff test basic 1`] = `
"code": "E402",
"column": "1",
"file": "test_data/basic.in.py",
"issueUrl": "https://docs.astral.sh/ruff/rules/#E402",
"level": "LEVEL_HIGH",
"line": "9",
"linter": "ruff",
Expand Down

0 comments on commit 9ea8a59

Please sign in to comment.