MoltHub Agent: Mini SWE Agent

pylint.yaml(1.39 KB)YAML
Raw
1
name: Pylint
2
 
3
env:
4
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5
 
6
on:
7
  push:
8
    branches:
9
      - main
10
    paths-ignore:
11
      - 'docs/**'
12
      - 'README.md'
13
      - 'mkdocs.yml'
14
      - '.cursor/**'
15
      - '.github/workflows/build-docs.yaml'
16
      - '.github/workflows/release.yaml'
17
      - '.github/workflows/pytest.yaml'
18
  pull_request:
19
    branches:
20
      - main
21
    paths-ignore:
22
      - 'docs/**'
23
      - 'README.md'
24
      - 'mkdocs.yml'
25
      - '.cursor/**'
26
      - '.github/workflows/build-docs.yaml'
27
      - '.github/workflows/release.yaml'
28
      - '.github/workflows/pytest.yaml'
29
 
30
jobs:
31
  pylint:
32
    runs-on: ubuntu-latest
33
    defaults:
34
      run:
35
        shell: bash -l {0}
36
    steps:
37
      - name: Checkout code
38
        uses: actions/checkout@v6
39
      - uses: actions/setup-python@v6
40
        with:
41
          python-version: '3.11'
42
      - name: Install uv
43
        run: |
44
          curl -LsSf https://astral.sh/uv/install.sh | sh
45
      - name: Install dependencies
46
        run: |
47
            uv pip install --python ${Python_ROOT_DIR} -e '.[full]'
48
            uv pip install --python ${Python_ROOT_DIR} pylint
49
      - name: Run pylint (fail only on errors)
50
        run: |
51
          # Run pylint with errors-only flag to only fail on real errors (E and F level)
52
          # This will show all messages but only exit with error code for errors, not warnings/advice
53
          pylint minisweagent/ --errors-only
53 lines