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 ruff formatter. #243

Merged
merged 1 commit into from
Nov 23, 2023
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
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ repos:
"--output-file",
"../../../../docs/snowflake.md",
]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
language_version: python3
args:
- --target-version=py310
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.259
rev: v0.1.6
hooks:
- id: ruff
args: [--show-source, --fix]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ignore = [
"D203", # blank line before docstring
"D212", # Start multi-line docstring at the second line.
"E501", # line length handled by black
"ISC001", # Handled by formatter
"PGH003", # specific mypy ignore codes
"PLR0913", # too many arguments
"PLR0912", # too many branches
Expand Down