Skip to content

Commit 24ae21a

Browse files
committed
add ruff issues to sonarcloud
1 parent 7ba523a commit 24ae21a

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

.github/workflows/analyze.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
coverage run
3030
- name: Anaylze with Flake8 ❄️
3131
run: flake8 --output-file=flake8.txt --exit-zero
32+
- name: Anaylze with Ruff ⚡️
33+
run: ruff check --output-format json --output-file ruff.json --exit-zero .
3234
- name: Generate Coverage Reports 📋
3335
run: |
3436
coverage report
@@ -40,6 +42,7 @@ jobs:
4042
path: |
4143
flake8.txt
4244
coverage.xml
45+
ruff.json
4346
sonarcloud:
4447
name: SonarCloud
4548
runs-on: ubuntu-latest

requirements-linting.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1 @@
1-
flake8
2-
flake8-aaa
3-
flake8-assertive
4-
flake8-bugbear
5-
flake8-clean-block
6-
flake8-commas
7-
flake8-comprehensions
8-
flake8-docstrings
9-
flake8-eradicate
10-
flake8-html
11-
flake8-length
12-
flake8-literal
13-
flake8-multiline-containers
14-
flake8-picky-parentheses
15-
flake8-pyproject
16-
flake8-return
17-
flake8-rst-docstrings
18-
flake8-simplify
19-
flake8-type-checking
20-
flake8-use-fstring
21-
flake8-secure-coding-standard
221
ruff

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sonar.sources=tibiapy/
99
sonar.python.version=3.8
1010
sonar.python.coverage.reportPaths=coverage.xml
1111
sonar.python.flake8.reportPaths=flake8.txt
12+
sonar.python.ruff.reportPaths=ruff.json
1213

1314
# Encoding of the source code. Default is default system encoding
1415
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)