Skip to content

Commit

Permalink
Merge pull request #186 from altheaden/flynt-to-linter
Browse files Browse the repository at this point in the history
Add flynt package to linter
  • Loading branch information
xylar authored Jul 27, 2024
2 parents 520c085 + b295d85 commit 1245ee3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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

0 comments on commit 1245ee3

Please sign in to comment.