Skip to content

Commit

Permalink
Merge pull request #168 from c-3lab/run-linter-and-formatter-before-c…
Browse files Browse the repository at this point in the history
…ommit

commit時にリンター、フォーマッターを実行できるようにした
  • Loading branch information
ryo-ma committed May 15, 2024
2 parents ec71b1d + a3443c0 commit 24dc610
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
entry: pflake8
additional_dependencies: [pyproject-flake8]
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ sqlalchemy = "^1.3.5"
psycopg2 = "2.9.3"

[tool.poetry.group.dev.dependencies]
pyproject-flake8 = "^6.0.0.post1"
flake8-quotes = "^3.3.2"
black = "^23.1.0"
isort = "^5.11.4"
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
mypy = "^0.991"
Expand All @@ -62,9 +58,10 @@ alembic = "1.0.0"
requests = "2.25.1"
passlib = "1.6.5"
python-magic = "0.4.15"
pyyaml = "5.4.1"
pyyaml = "6.0.1"
webassets = "0.12.1"
pyjwt = "1.7.1"
pre-commit = "3.5.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 24dc610

Please sign in to comment.