Skip to content

Commit

Permalink
Remove ruff tweaks (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
kharus authored Jan 14, 2025
1 parent 4ad4078 commit e77125c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 23 deletions.
6 changes: 2 additions & 4 deletions natural4-server/natural4_server/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@

from sanic import HTTPResponse, Request, Sanic, file, json

from cytoolz.functoolz import *
from cytoolz.itertoolz import *
from cytoolz.curried import *
import cytoolz.curried as cyz

from natural4_server.task import Task, run_tasks
from natural4_server.plugins.docgen import get_pandoc_tasks
Expand Down Expand Up @@ -273,7 +271,7 @@ async def petri_post_process(target_folder):
# stem is respectively a timestamp 2025-01-06T03:00:52
timestamp = (await dot_path.readlink()).stem

flowchart_tasks: asyncio.Task[None] = pipe(get_flowchart_tasks(target_folder, timestamp), run_tasks)
flowchart_tasks: asyncio.Task[None] = cyz.pipe(get_flowchart_tasks(target_folder, timestamp), run_tasks)

return timestamp, flowchart_tasks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import os
import sys

from cytoolz.functoolz import *
from cytoolz.itertoolz import *
from cytoolz.curried import *

import pyrsistent as pyrs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import os
import sys

from cytoolz.functoolz import *
from cytoolz.itertoolz import *
from cytoolz.curried import *

import pyrsistent as pyrs
import pyrsistent_extras as pyrse
Expand Down
3 changes: 1 addition & 2 deletions natural4-server/natural4_server/sanic.8090.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from io import StringIO
from dotenv import load_dotenv
from hello import app

# Define and load environment variables.
raw_env: str = """
Expand All @@ -10,8 +11,6 @@

load_dotenv(stream=StringIO(raw_env))

from hello import app

ssl: dict[str, str] = {
"cert": "/etc/letsencrypt/live/cclaw.legalese.com/cert.pem",
"key": "/etc/letsencrypt/live/cclaw.legalese.com/privkey.pem",
Expand Down
11 changes: 0 additions & 11 deletions natural4-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,3 @@ dev-dependencies = [
[tool.ruff]
line-length = 130
target-version = "py312"

ignore = ["E731", "E701"]
# E731: we are FPers, assigning lambdas is OK
# E701: sometimes it looks better to have multiple statements after colon

[tool.ruff.per-file-ignores]
"natural4_server/*.py" = ["F403", "E701", "F405"]
# quiet warning for Joe's unused `runvue` variable
"*joe*.py" = ["F403", "E701", "F405", "E402"]
"*8090*.py" = ["F403", "E701", "F405", "E402"]
# disable false positive linting warnings for joe's config gnunicorn files

0 comments on commit e77125c

Please sign in to comment.