diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..fb53b95 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') diff --git a/requirements.txt b/requirements.txt index 0a14b23..4a6dda0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ aiogram==3.22.0 fastapi==0.120.0 loguru==0.7.3 -pydantic==2.12 +pydantic==2.11.4 pydantic_settings==2.11.0 uvicorn==0.38.0