Skip to content

Commit e5c4de3

Browse files
committed
Update Lint Code Base to not use superlinter
1 parent a830203 commit e5c4de3

File tree

1 file changed

+20
-53
lines changed

1 file changed

+20
-53
lines changed

.github/workflows/linter.yaml

Lines changed: 20 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,35 @@
1-
#################################
2-
#################################
3-
## Super Linter GitHub Actions ##
4-
#################################
5-
#################################
61
name: Lint Code Base
72

8-
#
9-
# Documentation:
10-
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
11-
#
12-
13-
#############################
14-
# Start the job on all push #
15-
#############################
163
on:
174
pull_request:
185
branches: [main]
196

20-
###############
21-
# Set the Job #
22-
###############
7+
permissions:
8+
contents: read
9+
2310
jobs:
24-
build:
25-
# Name the Job
11+
lint:
2612
name: Lint Code Base
27-
# Set the agent to run on
2813
runs-on: ubuntu-latest
29-
# if on repo to avoid failing runs on forks
30-
if: |
31-
github.repository == 'google-a2a/a2a-python'
14+
if: github.repository == 'google-a2a/a2a-python'
3215

33-
##################
34-
# Load all steps #
35-
##################
3616
steps:
37-
##########################
38-
# Checkout the code base #
39-
##########################
4017
- name: Checkout Code
4118
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
4222
with:
43-
# Full git history is needed to get a proper list of changed files within `super-linter`
44-
fetch-depth: 0
23+
python-version-file: ".python-version"
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v1
27+
28+
- name: Install dependencies
29+
run: uv sync --dev
30+
31+
- name: Run Ruff Linter
32+
run: uv run ruff check --config .github/linters/.ruff.toml .
4533

46-
################################
47-
# Run Linter against code base #
48-
################################
49-
- name: Lint Code Base
50-
uses: super-linter/super-linter/slim@v7
51-
env:
52-
DEFAULT_BRANCH: main
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
LOG_LEVEL: WARN
55-
SHELLCHECK_OPTS: -e SC1091 -e 2086
56-
VALIDATE_PYTHON_BLACK: false
57-
VALIDATE_PYTHON_FLAKE8: false
58-
VALIDATE_PYTHON_ISORT: false
59-
VALIDATE_PYTHON_PYLINT: false
60-
VALIDATE_PYTHON_PYINK: false
61-
VALIDATE_CHECKOV: false
62-
VALIDATE_JAVASCRIPT_STANDARD: false
63-
VALIDATE_TYPESCRIPT_STANDARD: false
64-
VALIDATE_GIT_COMMITLINT: false
65-
PYTHON_MYPY_CONFIG_FILE: .mypy.ini
66-
FILTER_REGEX_INCLUDE: ".*src/**/*"
67-
FILTER_REGEX_EXCLUDE: ".*src/a2a/grpc/**/*"
68-
PYTHON_RUFF_CONFIG_FILE: .ruff.toml
34+
- name: Run MyPy Type Checker
35+
run: uv run mypy --config-file .github/linters/.mypy.ini src

0 commit comments

Comments
 (0)