-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ruff * Update pyproject.toml * indent-width * ruff fix * ruff format * incr version * line-ending = "native" * Update pyproject.toml * refactoring * Update pyproject.toml * Update pyproject.toml * change filename to ruff * change back * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml * Update ruff.yml * Update ruff.yml * ruff format
- Loading branch information
1 parent
b6acfb4
commit a35eaa0
Showing
24 changed files
with
127 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Ruff Code Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install Ruff | ||
run: | | ||
pip install ruff | ||
- name: Run Ruff Format | ||
run: | | ||
ruff format --check | ||
- name: Run Ruff Check | ||
run: | | ||
ruff check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import scrapy | ||
|
||
from scrapypuppeteer import PuppeteerRequest | ||
from scrapypuppeteer.actions import Har | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.ruff] | ||
line-length = 88 | ||
fix = false | ||
indent-width = 4 | ||
|
||
[tool.ruff.lint] | ||
select = ["F", "C", "W", "I"] | ||
ignore = ["E203", "E501", "F401", "C408", "F811", "N807"] | ||
|
||
[tool.ruff.format] | ||
indent-style = "space" | ||
line-ending = "auto" | ||
quote-style = "double" | ||
skip-magic-trailing-comma = false | ||
docstring-code-line-length = 88 | ||
docstring-code-format = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
from .actions import ( | ||
PuppeteerServiceAction, | ||
GoTo, | ||
GoForward, | ||
GoBack, | ||
Click, | ||
Scroll, | ||
Screenshot, | ||
Har, | ||
CustomJsAction, | ||
FillForm, | ||
GoBack, | ||
GoForward, | ||
GoTo, | ||
Har, | ||
PuppeteerServiceAction, | ||
RecaptchaSolver, | ||
CustomJsAction, | ||
Screenshot, | ||
Scroll, | ||
) | ||
from .request import PuppeteerRequest, CloseContextRequest | ||
from .request import CloseContextRequest, PuppeteerRequest | ||
from .response import ( | ||
PuppeteerResponse, | ||
PuppeteerHtmlResponse, | ||
PuppeteerScreenshotResponse, | ||
PuppeteerRecaptchaSolverResponse, | ||
PuppeteerJsonResponse, | ||
PuppeteerRecaptchaSolverResponse, | ||
PuppeteerResponse, | ||
PuppeteerScreenshotResponse, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.