diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index efb90f6..cac82d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/pieces/postgres_etl/python/pyproject.toml b/pieces/postgres_etl/python/pyproject.toml index 2ee35ad..24725a4 100644 --- a/pieces/postgres_etl/python/pyproject.toml +++ b/pieces/postgres_etl/python/pyproject.toml @@ -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 @@ -27,9 +32,6 @@ ignore=[ "ISC001", "ISC002", ] -line-length = 100 -target-version = "py38" -fix = true [tool.pytest.ini_options] asyncio_mode = "auto" diff --git a/pyproject.toml b/pyproject.toml index f7ba0c3..c3b54be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 @@ -31,6 +36,3 @@ ignore=[ "ISC001", "ISC002", ] -line-length = 100 -target-version = "py38" -fix = true