diff --git a/.bumpversion.cfg b/.bumpversion.cfg index fb22e634..7a05ab8c 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 20.2.1 +current_version = 20.2.4 commit = True tag = True tag_name = {new_version} diff --git a/.configs/pylintrc b/.configs/pylintrc deleted file mode 100644 index 99010ade..00000000 --- a/.configs/pylintrc +++ /dev/null @@ -1,22 +0,0 @@ -[MASTER] -# ignore snapshot files for linting -ignore=snapshot - -[MESSAGES CONTROL] - -# Disable the message, report, category or checker with the given id(s). You -# can either give multiple identifiers separated by comma (,) or put this -# option multiple times (only on the command line, not in the configuration -# file where it should appear only once). You can also use "--disable=all" to -# disable everything first and then reenable specific checks. For example, if -# you want to run only the similarities checker, you can use "--disable=all -# --enable=similarities". If you want to run only the classes checker, but have -# no Warning level messages displayed, use "--disable=all --enable=classes -# --disable=W". -# pylint: [pylint] C0330:Wrong hanging indentation before block (add 4 spaces) -disable=C0330 - -[FORMAT] - -# Maximum number of characters on a single line. -max-line-length=100 \ No newline at end of file diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 343a529b..a12b4973 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -6,10 +6,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version: "3.11" - uses: psf/black@stable with: options: ". --check --line-length 100" diff --git a/.github/workflows/production_install.yml b/.github/workflows/production_install.yml index 4f8da37a..4a2bc1bd 100644 --- a/.github/workflows/production_install.yml +++ b/.github/workflows/production_install.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Set up Python uses: actions/setup-python@v4 diff --git a/.github/workflows/publish_to_pypi.yaml b/.github/workflows/publish_to_pypi.yaml index dc0392a6..e368042a 100644 --- a/.github/workflows/publish_to_pypi.yaml +++ b/.github/workflows/publish_to_pypi.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.1 - name: Set up Python uses: actions/setup-python@v4 diff --git a/.github/workflows/test_and_coverage.yml b/.github/workflows/test_and_coverage.yml index 8fb78e40..e481a9e8 100644 --- a/.github/workflows/test_and_coverage.yml +++ b/.github/workflows/test_and_coverage.yml @@ -10,7 +10,7 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Set up Python uses: actions/setup-python@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 662ed258..0d2b093d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.1.0 hooks: - id: black args: [ --line-length=100 ] diff --git a/alembic/versions/2024_01_26_dc1aadf08b4d_drop_avatar.py b/alembic/versions/2024_01_26_dc1aadf08b4d_drop_avatar.py new file mode 100644 index 00000000..2677910c --- /dev/null +++ b/alembic/versions/2024_01_26_dc1aadf08b4d_drop_avatar.py @@ -0,0 +1,25 @@ +"""drop_avatar + +Revision ID: dc1aadf08b4d +Revises: 486e8c875e0b +Create Date: 2024-01-26 14:46:22.119614 + +""" + +# revision identifiers, used by Alembic. +revision = "dc1aadf08b4d" +down_revision = "486e8c875e0b" +branch_labels = None +depends_on = None + +import sqlalchemy as sa + +from alembic import op + + +def upgrade(): + op.drop_column("user", "avatar") + + +def downgrade(): + op.add_column("user", sa.Column("avatar", sa.Text(), nullable=True)) diff --git a/setup.py b/setup.py index c2871922..7a51061d 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ def parse_reqs(req_path="./requirements.txt"): setup( name=NAME, - version="20.2.1", + version="20.2.4", description=DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type="text/markdown", diff --git a/trailblazer/dto/analysis_response.py b/trailblazer/dto/analysis_response.py index 9a337ca9..c83077c6 100644 --- a/trailblazer/dto/analysis_response.py +++ b/trailblazer/dto/analysis_response.py @@ -6,7 +6,6 @@ class User(BaseModel): - avatar: str | None = None created_at: datetime | None = None email: str | None = None id: int diff --git a/trailblazer/store/models.py b/trailblazer/store/models.py index 7bbd2400..655ac895 100644 --- a/trailblazer/store/models.py +++ b/trailblazer/store/models.py @@ -34,7 +34,6 @@ def to_dict(self) -> dict: class User(Model): __tablename__ = "user" - avatar = Column(types.Text) created_at = Column(types.DateTime, default=datetime.datetime.now) email = Column(types.String(128), unique=True) google_id = Column(types.String(128), unique=True) @@ -57,7 +56,6 @@ def to_dict(self) -> dict: "id": self.id, "name": self.name, "email": self.email, - "avatar": self.avatar, "created_at": self.created_at, "is_archived": self.is_archived, }