Skip to content

Commit 6e5a408

Browse files
authored
Merge pull request cherrytea-dev#546 from volodkindv/linter
add ruff as linter
2 parents 4b0c783 + 819a166 commit 6e5a408

File tree

33 files changed

+3718
-3360
lines changed

33 files changed

+3718
-3360
lines changed

.flake8/.flake8

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/check_lint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check-Lint
2+
3+
on:
4+
pull_request:
5+
branches: [main, dev]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -r requirements-dev.txt
25+
26+
- name: Run lint-check
27+
if: success()
28+
run: |
29+
make lint-check
30+
env:
31+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy_check_first_posts_for_changes.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,8 @@ on:
1111
- '.github/workflows/deploy_check_first_posts_for_changes.yml' # UPD HERE!
1212

1313
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Python 3.7
19-
uses: actions/setup-python@v1
20-
with:
21-
python-version: 3.7
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install pylint
26-
pip install anybadge
27-
- name: Saving the Score
28-
run: |
29-
python3 .pylint/lint.py
30-
- name: Generating the badge
31-
run: |
32-
anybadge -l pylint -v ${{ env.LINT_SCORE }} -f .pylint/${{ env.FILE_NAME }}.svg 2=red 4=orange 8=yellow 10=green
33-
3414
deploy_function:
3515
runs-on: ubuntu-latest
36-
needs: build
37-
if: needs.build.result == 'success'
38-
3916
steps:
4017
- uses: actions/checkout@v3
4118

.github/workflows/lint_pull_request.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)