-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: removed pylint and added black and ruff and formatted codebase …
…using black and linting using ruff set max line length as 100
- Loading branch information
1 parent
a843ff5
commit ffccc55
Showing
20 changed files
with
391 additions
and
413 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
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,28 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 # Use the latest version | ||
hooks: | ||
- id: black | ||
args: ["--line-length=100"] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.5.6" # Use the latest version | ||
hooks: | ||
- id: ruff | ||
args: ["--line-length=100"] | ||
|
||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: Run pylint | ||
entry: poetry run pylint | ||
language: system | ||
types: [python] | ||
args: ["src"] | ||
stages: [commit] | ||
- id: pytest | ||
name: Run pytest | ||
entry: poetry run pytest | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
stages: [push] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v1.10.0" | ||
rev: "v1.11.1" | ||
hooks: | ||
- id: mypy | ||
args: [--install-types, --non-interactive] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 subprocess | ||
|
||
|
||
def post_install() -> None: | ||
subprocess.run(["poetry", "run", "pre-commit", "install"], check=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,2 +1,4 @@ | ||
from tiny_web_crawler.core.spider import Spider | ||
from tiny_web_crawler.core.spider_settings import SpiderSettings | ||
|
||
__all__ = ["Spider", "SpiderSettings"] |
Oops, something went wrong.