Skip to content

Commit 4e7e827

Browse files
Merge branch 'main' into dev
2 parents 965253e + 5b103e7 commit 4e7e827

24 files changed

+1395
-936
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude = .venv, _pycache_, migrations
4+
ignore = E501,F401,F811,F841,E203,E231,W503
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "pr-title-checker"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
merge_group:
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
main:
16+
name: Validate PR title
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event_name != 'merge_group' }}
19+
steps:
20+
- uses: amannn/action-semantic-pull-request@v5
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pylint.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Code Quality Workflow
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.11"]
11+
12+
steps:
13+
# Step 1: Checkout code
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
# Step 2: Set up Python environment
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
# Step 3: Run all code quality checks
24+
- name: Run Code Quality Checks
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
echo "Fixing imports with Isort..."
29+
python -m isort --verbose .
30+
echo "Formatting code with Black..."
31+
python -m black --verbose .
32+
echo "Running Flake8..."
33+
python -m flake8 --config=.flake8 --verbose .
34+
echo "Running Pylint..."
35+
python -m pylint --rcfile=.pylintrc --verbose .

.pylintrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[MASTER]
2+
ignore=__pycache__, migrations, .venv
3+
4+
[MESSAGES CONTROL]
5+
6+
disable=parse-error,missing-docstring,too-many-arguments,line-too-long
7+
8+
[FORMAT]
9+
10+
max-line-length=120
11+
12+
[DESIGN]
13+
14+
max-args=10
15+
max-locals=25
16+
max-branches=15
17+
max-statements=75
18+
19+
[REPORTS]
20+
output-format=colorized
21+
reports=no
22+
23+
[EXCEPTIONS]
24+
overgeneral-exceptions=builtins.Exception,builtins.BaseException

0 commit comments

Comments
 (0)