Skip to content

Commit

Permalink
Merge pull request #49 from AndreiDrang/main
Browse files Browse the repository at this point in the history
Upd libs and versions
  • Loading branch information
AndreiDrang committed Oct 30, 2023
2 parents 8bfe1ac + 08a0bc1 commit bc2a5dc
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "[github-actions] "
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4

- name: Build docs requirements
run: pip install -r docs/requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
python-version: ["3.11", ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"Capsolver",
"https://dashboard.capsolver.com/passport/register?inviteCode=kQTn-tG07Jb1",
),
]
ProjectLink("RedPandaDev", "https://red-panda-dev.xyz/"),
],
}
html_sidebars = {
"index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
Expand Down
1 change: 1 addition & 0 deletions docs/modules/other-libs/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
1. [RuCaptcha / 2Captcha](https://github.com/AndreiDrang/python-rucaptcha)
2. [AntiCaptcha](https://github.com/AndreiDrang/python3-anticaptcha)
3. [Capsolver](https://github.com/AndreiDrang/python3-capsolver)
4. [RedPandaDev group](https://red-panda-dev.xyz/)
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pallets_sphinx_themes==2.*
myst-parser==2.0.*
autodoc_pydantic==1.9.0
pydantic>=2.4.0 # not directly required, pinned by Snyk to avoid a vulnerability
2 changes: 1 addition & 1 deletion requirements.style.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# codestyle
isort==5.*
black==23.9.1
black==23.10.1
autoflake==2.*
4 changes: 2 additions & 2 deletions src/python3_capsolver/core/serializer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Literal, Optional

from pydantic import Field, BaseModel, conint

Expand All @@ -20,7 +20,7 @@ class TaskSer(BaseModel):


class RequestCreateTaskSer(PostRequestSer):
appId: str = Field(APP_ID, description="AppID", const=True)
appId: Literal[APP_ID] = APP_ID


class RequestGetTaskResultSer(PostRequestSer):
Expand Down
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests>=2.21.0
aiohttp>=3.7.4
pydantic==1.10.*
pydantic==2.4.2
tenacity==8.*

0 comments on commit bc2a5dc

Please sign in to comment.