Compare commits

..

2 commits

Author SHA1 Message Date
b619c3bf2a Disable linting on SQL statement
All checks were successful
ci/woodpecker/manual/lint Pipeline was successful
2024-02-10 20:54:16 -08:00
113f6b1db6 Initial linting CI checks 2024-02-10 20:54:16 -08:00
2 changed files with 11 additions and 1 deletions

10
.woodpecker/lint.yml Normal file
View file

@ -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 .

2
scl.py
View file

@ -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 (