Skip to content

Commit

Permalink
Merge pull request #61 from thedataquarry/ruff
Browse files Browse the repository at this point in the history
Update ruff to v0.2.0 and update settings to match
  • Loading branch information
sanders41 authored Feb 2, 2024
2 parents 745e505 + c1f7ea3 commit 9974e99
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
exclude: ".*/test_.*\\.py"
args: [--explicit-package-bases] # This is because of the mono repo type setup
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 5 additions & 3 deletions pieces/postgres_etl/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ module = ["tests.*"]
disallow_untyped_defs = false

[tool.ruff]
line-length = 100
target-version = "py38"
fix = true

[tool.ruff.lint]
select=["E", "F", "UP", "I001"]
ignore=[
# Recommened ignores by ruff when using formatter
Expand All @@ -27,9 +32,6 @@ ignore=[
"ISC001",
"ISC002",
]
line-length = 100
target-version = "py38"
fix = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ module = ["asyncpg.*", "srsly.*"]
ignore_missing_imports = true

[tool.ruff]
line-length = 100
target-version = "py38"
fix = true

[tool.ruff.lint]
select=["E", "F", "UP", "I001"]
ignore=[
# Recommened ignores by ruff when using formatter
Expand All @@ -31,6 +36,3 @@ ignore=[
"ISC001",
"ISC002",
]
line-length = 100
target-version = "py38"
fix = true

0 comments on commit 9974e99

Please sign in to comment.