diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100755 new mode 100644 index e873934..551e422 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,14 @@ repos: hooks: - id: isort + # Can run individually with `flynt [file]` or `flynt [source]` + - repo: https://github.com/ikamensh/flynt + rev: '0.78' + hooks: + - id: flynt + args: ["--fail-on-change", "--verbose"] + require_serial: true + # Can run individually with `pre-commit run flake8 --all-files` # Need to use flake8 GitHub mirror due to CentOS git issue with GitLab # https://github.com/pre-commit/pre-commit/issues/1206 diff --git a/pyproject.toml b/pyproject.toml index b1ae0d8..a53d8b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ dev = [ "pip", "pytest", "isort", + "flynt", "flake8", "mypy", "pre-commit", diff --git a/spec-file.txt b/spec-file.txt index 108ac1b..dca8855 100644 --- a/spec-file.txt +++ b/spec-file.txt @@ -13,6 +13,7 @@ setuptools >=60 pip pytest isort +flynt flake8 mypy pre-commit