Skip to content

Commit

Permalink
ci: Update linting settings to specify additional rules and run Ruff …
Browse files Browse the repository at this point in the history
…formatter
  • Loading branch information
jcfr committed Aug 14, 2024
1 parent c685c89 commit f5bed0f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ repos:
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
29 changes: 29 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
target-version = "py39"

[lint]
extend-select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"G", # flake8-logging-format
"ICN", # flake8-import-conventions
"I", # isort
"NPY", # NumPy specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"ISC001", # Conflicts with formatter
]

0 comments on commit f5bed0f

Please sign in to comment.