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

Make flake8 clean #19

Merged
merged 1 commit into from
Dec 1, 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
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ jobs:
requirements-files: "requirements.txt requirements-test.txt"
- name: flake8 Lint
uses: py-actions/flake8@v2
# There are too many errors to start with to fail on this
continue-on-error: true
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os.path
import re
import warnings

from setuptools import setup

version = "0.3.6"
Expand Down
4 changes: 0 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import json

import pytest
import pytest_mock
from falcon import testing

from freezing.nq.app import make_app
from freezing.nq.config import config
from freezing.nq.publish import ActivityPublisher


Expand Down
4 changes: 1 addition & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import copy
import json

import arrow
import falcon
import pytest
from freezing.model.msg.mq import ActivityUpdate, DefinedTubes
from freezing.model.msg.strava import AspectType

Expand Down Expand Up @@ -44,6 +41,7 @@ def test_post_webhook(client, publisher: ActivityPublisher):
result = client.simulate_post(
"/webhook", body=json.dumps(d), headers={"content-type": "application/json"}
)
assert result.status_code == 200

message = ActivityUpdate()
message.athlete_id = d["owner_id"]
Expand Down
Loading