-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release support for Python 3.8 and above versions
Fixes #53
- Loading branch information
1 parent
c8c7ffc
commit e62bb89
Showing
5 changed files
with
1,243 additions
and
1,172 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
repos: | ||
- repo: https://github.com/python-poetry/poetry | ||
rev: "1.5.1" | ||
hooks: | ||
- id: poetry-check | ||
name: Poetry Check | ||
description: This hook runs poetry check. | ||
|
||
- id: poetry-lock | ||
name: Poetry Lock | ||
description: This hook runs poetry lock. | ||
|
||
- id: poetry-export | ||
name: Poetry Export | ||
description: This hook runs poetry export to export dependencies to requirements.txt file which helps to keep this repository tool agnostic. | ||
args: | ||
["--with", "dev", "-f", "requirements.txt", "-o", "requirements.txt"] | ||
verbose: true | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
name: Trailing Whitespace | ||
description: This hook removes trailing whitespace. | ||
|
||
- id: end-of-file-fixer | ||
name: End of File Fixer | ||
description: This hook makes sure files end in a newline and only a newline. | ||
exclude: ^.*\.egg-info/ | ||
|
||
- id: check-merge-conflict | ||
name: Check Merge Conflict | ||
description: This hook checks for files that contain merge conflict strings. | ||
|
||
- id: check-case-conflict | ||
name: Check Case Conflict | ||
description: This hook checks for files that differ only in case. | ||
|
||
- id: check-json | ||
name: Check JSON | ||
description: This hook checks that JSON files are valid. | ||
exclude: ^(\.vscode|\.devcontainer)/.*\.json$ | ||
|
||
- id: check-toml | ||
name: Check TOML | ||
description: This hook checks that TOML files are valid. | ||
exclude: tests/fixtures/invalid_lock/poetry\.lock | ||
|
||
- id: check-yaml | ||
name: Check YAML | ||
description: This hook checks that YAML files are valid. | ||
|
||
- id: pretty-format-json | ||
name: Pretty Format JSON | ||
args: [--autofix, --no-ensure-ascii, --no-sort-keys] | ||
exclude: ^(\.vscode|\.devcontainer)/.*\.json$ | ||
|
||
- id: check-ast | ||
name: Check AST | ||
description: This hook checks that Python files parse as valid Python. | ||
|
||
- id: debug-statements | ||
name: Debug Statements | ||
description: This hook checks for debugger imports and py37+ breakpoint() calls. | ||
|
||
- id: check-docstring-first | ||
name: Check Docstring First | ||
description: This hook checks that files have a docstring as the first statement. | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.283 | ||
hooks: | ||
- id: ruff | ||
name: Ruff Attempt Auto-Fixes | ||
description: This hook runs ruff and attempts auto-fixes. | ||
types_or: [python, pyi, jupyter] | ||
args: [--fix, --exit-non-zero-on-fix] | ||
|
||
- repo: https://github.com/econchick/interrogate | ||
rev: 1.5.0 | ||
hooks: | ||
- id: interrogate | ||
name: Interrogate | ||
description: This hook runs interrogate checks. | ||
args: [-vv, --config, pyproject.toml, --color] | ||
pass_filenames: false |
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.