Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flynt package to linter #186

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dev = [
"pip",
"pytest",
"isort",
"flynt",
"flake8",
"mypy",
"pre-commit",
Expand Down
1 change: 1 addition & 0 deletions spec-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setuptools >=60
pip
pytest
isort
flynt
flake8
mypy
pre-commit
Expand Down
Loading