-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from emarondan/adding-pre-commit
Adding pre commit
- Loading branch information
Showing
13 changed files
with
701 additions
and
567 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
skips: | ||
- B101 # assert_used, needed for mypy | ||
- B311 | ||
- B320 | ||
- B410 | ||
exclude_dirs: ['tests'] |
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,2 @@ | ||
[flake8] | ||
max-line-length = 88 |
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,2 @@ | ||
# applying pre-commit hooks to the project | ||
05665a6fb1717ef513d7a8ac87b8eb499a64cdc9 |
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 |
---|---|---|
|
@@ -17,20 +17,6 @@ jobs: | |
- python-version: "2.7" | ||
env: | ||
TOXENV: py | ||
- python-version: "3.4" | ||
env: | ||
TOXENV: py34 | ||
# 3.5 cannot be tested in CI | ||
# https://github.com/MatteoH2O1999/setup-python/issues/49#issuecomment-2209940822 | ||
- python-version: "3.6" | ||
env: | ||
TOXENV: py | ||
- python-version: "3.7" | ||
env: | ||
TOXENV: py | ||
- python-version: "3.8" | ||
env: | ||
TOXENV: py | ||
- python-version: "3.9" | ||
env: | ||
TOXENV: py | ||
|
@@ -76,3 +62,8 @@ jobs: | |
run: tox | ||
- name: Upload coverage.xml to codecov | ||
uses: codecov/codecov-action@v1 | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pre-commit/[email protected] |
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,2 @@ | ||
[settings] | ||
profile = black |
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,6 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.10 | ||
rev: 1.7.9 | ||
hooks: | ||
- id: bandit | ||
args: [-r, -c, .bandit.yml] | ||
- repo: https://github.com/psf/black.git | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort |
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,4 @@ | ||
from .middleware import ZyteSmartProxyMiddleware | ||
|
||
|
||
__version__ = '2.3.5' | ||
__version__ = "2.3.5" | ||
__all__ = ["ZyteSmartProxyMiddleware"] |
Oops, something went wrong.