Skip to content

Commit f16f33b

Browse files
authored
Merge pull request #3 from zhujian0805/main
update the python link checks
2 parents 2b01f2c + b73eca9 commit f16f33b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Flake8 configuration for code-assistant-manager
33

44
# Compatibility with Black
5-
max-line-length = 88
6-
extend-ignore = E203, W503, E501
5+
max-line-length = 100
6+
extend-ignore = E203, W503, E501, B907, B904, F841, B017
77

88
# Exclude patterns
99
exclude =
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pylint
1+
name: Linting
22

33
on: [push]
44

@@ -17,10 +17,11 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install pylint radon
21-
- name: Analysing the code with pylint
20+
pip install flake8 radon
21+
- name: Analysing the code with flake8
2222
run: |
23-
pylint $(git ls-files '*.py')
23+
flake8 $(git ls-files '*.py')
24+
continue-on-error: true
2425
- name: Check code complexity
2526
run: |
2627
echo "=== Code Complexity Analysis ==="
@@ -31,3 +32,4 @@ jobs:
3132
- name: Check file sizes
3233
run: |
3334
python scripts/check_file_sizes.py
35+
continue-on-error: true

scripts/check_file_sizes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77

88
# Maximum allowed lines per file
9-
MAX_LINES = 500
9+
MAX_LINES = 750
1010

1111
# File extensions to check
1212
SOURCE_EXTENSIONS = {
@@ -87,7 +87,7 @@ def main():
8787
print(f"❌ Found {len(violations)} file(s) exceeding {MAX_LINES} lines:")
8888
print()
8989
for file_path, lines in sorted(violations):
90-
print("20")
90+
print(f" {file_path}: {lines} lines")
9191
print()
9292
print(f"💡 Consider breaking large files into smaller modules.")
9393
print(f" Maximum allowed: {MAX_LINES} lines per file")

0 commit comments

Comments
 (0)