-
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #133 from praw-dev/update_pre_commit_hooks
Update pre commit hooks
- Loading branch information
Showing
17 changed files
with
135 additions
and
102 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,2 +1,7 @@ | ||
[flake8] | ||
exclude = .eggs,build,docs,.venv* | ||
ignore = E203 E501 W503 W504 | ||
per-file-ignores = | ||
asyncpraw/models/__init__.py:F401 | ||
asyncpraw/models/listing/mixins/__init__.py:F401 | ||
asyncpraw/models/reddit/mixins/__init__.py:F401 |
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,19 @@ | ||
jobs: | ||
auto-update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: browniebroke/pre-commit-autoupdate-action@main | ||
- uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: update/pre-commit-hooks | ||
title: Update pre-commit hooks | ||
commit-message: "Update pre-commit hooks" | ||
body: Update versions of pre-commit hooks to the latest version. | ||
name: 'Update pre-commit hooks' | ||
on: | ||
schedule: | ||
- cron: '0 15 * * 1' | ||
workflow_dispatch: |
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ jobs: | |
name: Set Active Docs | ||
on: | ||
release: | ||
types: [published] | ||
types: [published] |
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,7 +1,60 @@ | ||
fail_fast: true | ||
repos: | ||
- hooks: | ||
- id: black | ||
language_version: python3 | ||
repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: .*\.txt | ||
rev: v4.0.1 | ||
|
||
- repo: local | ||
hooks: | ||
- id: static_word_checks | ||
args: | ||
- '--replace' | ||
entry: python -m tools.static_word_checks | ||
language: system | ||
name: Static Word Checks | ||
pass_filenames: false | ||
types: [ python ] | ||
|
||
- id: check_documentation | ||
entry: python -m tools.check_documentation | ||
language: system | ||
name: Check Documentation | ||
pass_filenames: false | ||
types: [ python ] | ||
|
||
- repo: https://github.com/psf/black | ||
hooks: | ||
- id: black | ||
rev: 21.10b0 | ||
|
||
- repo: https://github.com/LilSpazJoekp/docstrfmt | ||
hooks: | ||
- id: docstrfmt | ||
require_serial: true | ||
rev: v1.4.1 | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
hooks: | ||
- id: flake8 | ||
rev: 4.0.1 | ||
|
||
- repo: https://github.com/ikamensh/flynt/ | ||
hooks: | ||
- id: flynt | ||
args: | ||
- '-ll' | ||
- '1000' | ||
rev: '0.69' | ||
|
||
- repo: https://github.com/pycqa/isort | ||
hooks: | ||
- id: isort | ||
rev: 5.9.3 | ||
|
||
- repo: https://github.com/pycqa/pydocstyle | ||
hooks: | ||
- id: pydocstyle | ||
files: asyncpraw/.* | ||
rev: 6.1.1 |
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,7 +1,10 @@ | ||
[tool.black] | ||
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv.*|_build|buck-out|build|dist)/' | ||
extend_exclude = '/(\.venv.*)/' | ||
line-length = 88 | ||
|
||
[tool.docstrfmt] | ||
extend_exclude = ['./docs/examples/'] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
skip_glob = '.venv*' | ||
profile = 'black' | ||
skip_glob = '.venv*' |
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,9 +1,2 @@ | ||
[aliases] | ||
test = pytest | ||
|
||
[flake8] | ||
ignore = E203 W503 | ||
per-file-ignores = | ||
asyncpraw/models/__init__.py:F401 | ||
asyncpraw/models/listing/mixins/__init__.py:F401 | ||
asyncpraw/models/reddit/mixins/__init__.py:F401 |
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 |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
], | ||
"recorded_at": "2020-07-04T18:07:23", | ||
"version": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -64,4 +64,4 @@ | |
], | ||
"recorded_at": "2020-07-04T18:07:24", | ||
"version": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -60,4 +60,4 @@ | |
], | ||
"recorded_at": "2020-07-04T18:12:48", | ||
"version": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -67,4 +67,4 @@ | |
], | ||
"recorded_at": "2020-07-04T18:07:23", | ||
"version": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -60,4 +60,4 @@ | |
], | ||
"recorded_at": "2020-07-04T18:07:23", | ||
"version": 1 | ||
} | ||
} |