-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
876 additions
and
725 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,48 +1,74 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
fail_fast: true | ||
default_install_hook_types: [commit-msg, pre-commit, pre-push] | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: check-toml | ||
- id: check-ast | ||
- id: debug-statements | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-case-conflict | ||
stages: ["pre-commit"] | ||
- id: check-merge-conflict | ||
stages: ["pre-commit"] | ||
- id: check-added-large-files | ||
stages: ["pre-commit"] | ||
args: ['--maxkb=5000'] | ||
- id: check-ast | ||
stages: ["pre-commit"] | ||
- id: check-executables-have-shebangs | ||
stages: ["pre-commit"] | ||
- id: check-symlinks | ||
stages: ["pre-commit"] | ||
- id: check-toml | ||
stages: ["pre-commit"] | ||
- id: check-yaml | ||
stages: ["pre-commit"] | ||
- id: debug-statements | ||
stages: ["pre-commit"] | ||
- id: end-of-file-fixer | ||
stages: ["pre-commit"] | ||
- id: trailing-whitespace | ||
stages: ["pre-commit"] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
rev: 24.4.2 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/python-poetry/poetry | ||
rev: '1.4.0' | ||
rev: '1.8.0' | ||
hooks: | ||
- id: poetry-check | ||
- id: poetry-lock | ||
args: ["--no-update"] | ||
- id: poetry-check | ||
files: ^(.*/)?pyproject\.toml$ | ||
stages: ["pre-commit"] | ||
- id: poetry-lock | ||
files: ^(.*/)?(poetry\.lock|pyproject\.toml)$ | ||
args: ["--no-update"] | ||
stages: ["pre-commit"] | ||
|
||
- repo: local | ||
hooks: | ||
- id: ruff | ||
name: ruff | ||
entry: poetry run ruff check aioauth_client | ||
language: system | ||
pass_filenames: false | ||
files: \.py$ | ||
stages: ["pre-commit"] | ||
|
||
- id: mypy | ||
name: mypy | ||
entry: poetry run mypy | ||
language: system | ||
pass_filenames: false | ||
|
||
- id: ruff | ||
name: ruff | ||
entry: poetry run ruff aioauth_client | ||
language: system | ||
pass_filenames: false | ||
- id: mypy | ||
name: mypy | ||
entry: poetry run mypy | ||
language: system | ||
pass_filenames: false | ||
files: \.py$ | ||
stages: ["pre-push"] | ||
|
||
- id: pytest | ||
name: pytest | ||
entry: poetry run pytest | ||
language: system | ||
pass_filenames: false | ||
- id: pytest | ||
name: pytest | ||
entry: poetry run pytest | ||
language: system | ||
pass_filenames: false | ||
files: \.py$ | ||
stages: ["pre-push"] |
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,8 @@ | ||
2024-11-14 klen | ||
|
||
* Support Python 3.12, 3.13 | ||
* Drop support Python 3.8 | ||
|
||
2023-03-17 klen | ||
|
||
* Support Python 3.11 | ||
|
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.