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

Apply Black=24.3.0 Formatting Changes #4827

Merged
merged 1 commit into from
Apr 24, 2024
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
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This file aggregates nox commands for various development tasks.
"""

import platform
import shutil
import sys
Expand Down
1 change: 1 addition & 0 deletions noxfiles/ci_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the nox sessions used during CI checks."""

from functools import partial
from typing import Callable, Dict

Expand Down
1 change: 1 addition & 0 deletions noxfiles/constants_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define constants to be used across the noxfiles."""

from os import getcwd, getenv

# Files
Expand Down
1 change: 1 addition & 0 deletions noxfiles/dev_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the nox sessions for running development environments."""

import time
from pathlib import Path
from typing import Literal
Expand Down
1 change: 1 addition & 0 deletions noxfiles/docker_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the nox sessions for docker-related tasks."""

from typing import Callable, Dict, List, Optional, Tuple

import nox
Expand Down
1 change: 1 addition & 0 deletions noxfiles/docs_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the nox sessions for developing docs."""

import nox

from constants_nox import CI_ARGS
Expand Down
1 change: 1 addition & 0 deletions noxfiles/run_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file invokes a command used to setup infrastructure for use in testing Fidesops
and related workflows.
"""

# pylint: disable=inconsistent-return-statements
import argparse
import subprocess
Expand Down
1 change: 1 addition & 0 deletions noxfiles/utils_nox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains various utility-related nox sessions."""

from pathlib import Path

import nox
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ignore_missing_imports = true
## Black ##
###########
[tool.black]
py39 = true
target-version = ["py39"]
Copy link
Contributor Author

@pattisdr pattisdr Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like py39 = true doesn't work anymore -

line-length = 88
include = '\.pyi?$'
exclude = '''
Expand Down
1 change: 1 addition & 0 deletions scripts/create_test_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to create test data for the Admin UI"""

import asyncio
import string
from datetime import datetime, timedelta
Expand Down
1 change: 1 addition & 0 deletions scripts/generate_docs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module handles generating documentation from code.
"""

import json
import sys

Expand Down
1 change: 1 addition & 0 deletions scripts/quickstart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A five-step fidesops quickstart
"""

import json
import os
import time
Expand Down
1 change: 1 addition & 0 deletions src/fides/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The root module for the Fides package."""

from ._version import get_versions

__version__ = get_versions()["version"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-10-29 11:51:19.265141

"""

import sqlalchemy as sa
import sqlalchemy_utils
from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-17 01:26:43.187484

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-01-27 19:18:11.899734

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-08-18 23:48:22.934916

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-02-21 19:56:39.228072

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-12 14:57:07.532660

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ def load_default_experience_configs():
experience_config["regions"] = set(experience_config["regions"])

experience_config["privacy_notices"] = set()
experience_config[
"needs_migration"
] = False # indicator whether the record requires migration, or we can default to the template values
experience_config["needs_migration"] = (
False # indicator whether the record requires migration, or we can default to the template values
)
_reconciled_experience_config_map[experience_config_type] = experience_config
experience_config["needs_migration"] = False
return _reconciled_experience_config_map, _raw_experience_config_map
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-03-07 20:14:00.530408

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-09 01:13:23.440193

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-02 15:03:56.256982

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.exc import IntegrityError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-01-28 20:41:20.065432

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-31 18:19:26.845723

"""

import sqlalchemy as sa
import sqlalchemy_utils
from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-09-01 17:28:22.099543

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-15 22:15:38.688530

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-02-09 23:27:24.742938

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-09-06 04:09:06.212144

"""

import json
from typing import Dict, List, Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-12-02 17:59:08.490577

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-05-25 04:09:22.149110

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Create Date: 2022-12-09 22:03:51.097585

"""

import json
import uuid
from typing import Any, Dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-24 10:40:25.875324

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-16 20:05:29.478005

"""

import sqlalchemy as sa
import sqlalchemy_utils
from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-09-22 04:12:38.479740

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-06-06 20:28:08.893135

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-07 23:56:14.066374

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-05-05 13:41:28.807920

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-06 21:46:30.715273

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-13 23:08:35.011377

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-03-03 17:13:21.108111

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-12-08 17:49:14.317905

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-08-25 14:19:16.798409

"""

from typing import Dict

import sqlalchemy as sa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-12-15 15:53:46.484775

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-05 23:24:43.174826

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Create Date: 2024-03-05 17:08:07.093568

"""

from datetime import datetime

import sqlalchemy as sa
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-09-28 19:58:31.618442

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-21 20:10:01.389078

"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-01-20 15:33:24.084841

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-08-03 20:07:46.326248

"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-03-28 02:42:13.114938

"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Loading
Loading