Skip to content

Commit 0b85ad1

Browse files
Replace flake8 with ruff
1 parent 61ce45a commit 0b85ad1

17 files changed

+18
-22
lines changed

guardrails/utils/validator_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# flake8: noqa
1+
# ruff: noqa
22
"""This module contains the constants and utils used by the validator.py."""
33

4-
54
from typing import Any, Dict, List, Optional, Tuple, Type, Union
65

76
from guardrails.utils.safe_get import safe_get

tests/integration_tests/test_assets/entity_extraction/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
import os
33

44
from .optional_prompts import (

tests/integration_tests/test_assets/entity_extraction/optional_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22

33
OPTIONAL_PROMPT_COMPLETION_MODEL = """
44
Given the following document, answer the following questions. If the answer doesn't exist in the document, enter 'None'.

tests/integration_tests/test_assets/entity_extraction/validated_output_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
VALIDATED_OUTPUT_FILTER = {
33
"fees": [
44
{

tests/integration_tests/test_assets/entity_extraction/validated_output_fix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
VALIDATED_OUTPUT_FIX = {
33
"fees": [
44
{

tests/integration_tests/test_assets/entity_extraction/validated_output_noop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
VALIDATED_OUTPUT_NOOP = {
33
"fees": [
44
{

tests/integration_tests/test_assets/entity_extraction/validated_output_reask_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
from guardrails.utils.reask_utils import FieldReAsk
33
from guardrails.validators import FailResult
44

tests/integration_tests/test_assets/entity_extraction/validated_output_reask_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
VALIDATED_OUTPUT_REASK_2 = {
33
"fees": [
44
{

tests/integration_tests/test_assets/entity_extraction/validated_output_skeleton_reask_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
from guardrails.utils.reask_utils import SkeletonReAsk
33
from guardrails.validators import FailResult
44

tests/integration_tests/test_assets/entity_extraction/validated_output_skeleton_reask_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flake8: noqa: E501
1+
# ruff: noqa: E501
22
VALIDATED_OUTPUT_SKELETON_REASK_2 = {
33
"fees": [
44
{"name": "annual membership", "explanation": "", "value": 0.0},

0 commit comments

Comments
 (0)