diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..1bc5a73 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,10 @@ +when: + branch: main +steps: + - name: lint + image: python:3-alpine + commands: + - python -m pip install --upgrade pip + - python -m pip install -r requirements.txt + - python -m pip install ruff + - ruff check . \ No newline at end of file diff --git a/scl.py b/scl.py index 4987404..80aadd4 100644 --- a/scl.py +++ b/scl.py @@ -411,7 +411,7 @@ with Session(engine) as session: session.commit() lookup_active_outages_statement = select(SclOutage).where( - SclOutage.no_longer_in_response_time == None + SclOutage.no_longer_in_response_time == None # noqa: E711 - Syntax must stay this way for SQLAlchemy ) for active_outage in session.scalars(lookup_active_outages_statement): if (