build: add ruff and format code
This commit is contained in:
		
							parent
							
								
									afadffbaac
								
							
						
					
					
						commit
						9d24f79436
					
				
					 20 changed files with 122 additions and 60 deletions
				
			
		|  | @ -5,11 +5,12 @@ Revises: | |||
| Create Date: 2024-03-09 16:32:28.590145 | ||||
| 
 | ||||
| """ | ||||
| 
 | ||||
| from typing import Sequence, Union | ||||
| 
 | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
| 
 | ||||
| from alembic import op | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision: str = "b39613fd7327" | ||||
|  |  | |||
|  | @ -5,12 +5,14 @@ Revises: b39613fd7327 | |||
| Create Date: 2024-03-13 17:01:50.434602 | ||||
| 
 | ||||
| """ | ||||
| 
 | ||||
| from typing import Sequence, Union | ||||
| 
 | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
| from sqlalchemy.dialects import postgresql | ||||
| 
 | ||||
| from alembic import op | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision: str = "0b63f7c8ab96" | ||||
| down_revision: Union[str, None] = "b39613fd7327" | ||||
|  |  | |||
|  | @ -5,12 +5,14 @@ Revises: 0b63f7c8ab96 | |||
| Create Date: 2024-03-20 15:36:08.756635 | ||||
| 
 | ||||
| """ | ||||
| 
 | ||||
| from typing import Sequence, Union | ||||
| 
 | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
| from sqlalchemy.dialects import postgresql | ||||
| 
 | ||||
| from alembic import op | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision: str = "1d8f8443a7f5" | ||||
| down_revision: Union[str, None] = "0b63f7c8ab96" | ||||
|  |  | |||
|  | @ -5,37 +5,43 @@ Revises: 1d8f8443a7f5 | |||
| Create Date: 2024-03-20 16:00:59.251354 | ||||
| 
 | ||||
| """ | ||||
| 
 | ||||
| from typing import Sequence, Union | ||||
| 
 | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
| from sqlalchemy.dialects import postgresql | ||||
| 
 | ||||
| from alembic import op | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision: str = '17cc8cb77be5' | ||||
| down_revision: Union[str, None] = '1d8f8443a7f5' | ||||
| revision: str = "17cc8cb77be5" | ||||
| down_revision: Union[str, None] = "1d8f8443a7f5" | ||||
| branch_labels: Union[str, Sequence[str], None] = None | ||||
| depends_on: Union[str, Sequence[str], None] = None | ||||
| 
 | ||||
| 
 | ||||
| def upgrade() -> None: | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     op.create_table('members', | ||||
|     sa.Column('id', sa.BigInteger(), nullable=False), | ||||
|     sa.Column('name', sa.Text(), nullable=False), | ||||
|     sa.Column('display_name', sa.Text(), nullable=True), | ||||
|     sa.Column('bio', sa.Text(), nullable=True), | ||||
|     sa.Column('names', postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|     sa.Column('pronouns', postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|     sa.Column('fields', postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|     sa.Column('user_id', sa.BigInteger(), nullable=False), | ||||
|     sa.ForeignKeyConstraint(['user_id'], ['users.id'], ), | ||||
|     sa.PrimaryKeyConstraint('id') | ||||
|     op.create_table( | ||||
|         "members", | ||||
|         sa.Column("id", sa.BigInteger(), nullable=False), | ||||
|         sa.Column("name", sa.Text(), nullable=False), | ||||
|         sa.Column("display_name", sa.Text(), nullable=True), | ||||
|         sa.Column("bio", sa.Text(), nullable=True), | ||||
|         sa.Column("names", postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|         sa.Column("pronouns", postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|         sa.Column("fields", postgresql.JSONB(astext_type=sa.Text()), nullable=False), | ||||
|         sa.Column("user_id", sa.BigInteger(), nullable=False), | ||||
|         sa.ForeignKeyConstraint( | ||||
|             ["user_id"], | ||||
|             ["users.id"], | ||||
|         ), | ||||
|         sa.PrimaryKeyConstraint("id"), | ||||
|     ) | ||||
|     # ### end Alembic commands ### | ||||
| 
 | ||||
| 
 | ||||
| def downgrade() -> None: | ||||
|     # ### commands auto generated by Alembic - please adjust! ### | ||||
|     op.drop_table('members') | ||||
|     op.drop_table("members") | ||||
|     # ### end Alembic commands ### | ||||
|  |  | |||
|  | @ -5,11 +5,12 @@ Revises: 17cc8cb77be5 | |||
| Create Date: 2024-03-21 15:52:09.403257 | ||||
| 
 | ||||
| """ | ||||
| 
 | ||||
| from typing import Sequence, Union | ||||
| 
 | ||||
| from alembic import op | ||||
| import sqlalchemy as sa | ||||
| 
 | ||||
| from alembic import op | ||||
| 
 | ||||
| # revision identifiers, used by Alembic. | ||||
| revision: str = "a000d800f45f" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue