Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1f5ed0d
Running ReactPy in a backhaul thread
Archmonger Jul 11, 2023
026676e
less LOCs for backhaul thread
Archmonger Jul 11, 2023
ecb2a0d
simplier effect
Archmonger Jul 11, 2023
f77c5e8
remove excess div
Archmonger Jul 11, 2023
52be745
move RPS endpoint
Archmonger Jul 13, 2023
8e8cb72
add whitenoise
Archmonger Jul 13, 2023
5c01a84
Allow for testing multiple renderers
Archmonger Jul 13, 2023
712c1ea
set debug
Archmonger Jul 13, 2023
a60bb64
sort
Archmonger Jul 13, 2023
64175c4
add component count
Archmonger Jul 13, 2023
e71b402
Add TTL
Archmonger Jul 13, 2023
f997001
add ttl tests
Archmonger Jul 13, 2023
8c3a354
receive queue does not need to be threaded
Archmonger Jul 13, 2023
868c26e
rename loop function
Archmonger Jul 13, 2023
6ab1742
Revert "receive queue does not need to be threaded"
Archmonger Jul 13, 2023
e65f86a
ensure todo list entries are unique
Archmonger Jul 13, 2023
c54c216
events per second tests
Archmonger Jul 14, 2023
5fd014f
use text input instead
Archmonger Jul 14, 2023
8187df7
rename EPS
Archmonger Jul 14, 2023
f434e4c
net io TTL
Archmonger Jul 14, 2023
d8e3b0b
mixed TTL
Archmonger Jul 14, 2023
8866f3f
Add config setting for backhaul thread
Archmonger Jul 14, 2023
12e7ea0
fix formatting
Archmonger Jul 14, 2023
ac03724
add changelog
Archmonger Jul 14, 2023
517caf9
add backhaul to dictionary
Archmonger Jul 14, 2023
ddd718f
Remove excess exceptions, potential attack vector
Archmonger Jul 14, 2023
11b93b4
add logging for daphne issues
Archmonger Jul 14, 2023
690fbda
eps -> erps
Archmonger Jul 15, 2023
bdbe9f0
event timing
Archmonger Jul 15, 2023
b6cb92f
better daphne check
Archmonger Jul 15, 2023
91f90d4
I really hate Ruff
Archmonger Jul 15, 2023
b8c1a9a
change comment
Archmonger Jul 16, 2023
993fe45
better debug check
Archmonger Jul 16, 2023
7b928b4
make run dispatcher public
Archmonger Jul 19, 2023
143c2cd
cleanup
Archmonger Jul 20, 2023
92e9eed
threading for all logging
Archmonger Jul 22, 2023
2f2135f
switch to ruff
Archmonger Jul 22, 2023
6b77479
change line length
Archmonger Jul 22, 2023
8d19322
bump minimum python version
Archmonger Jul 22, 2023
356ed88
use ruff for docs
Archmonger Jul 22, 2023
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switch to ruff
  • Loading branch information
Archmonger committed Jul 22, 2023
commit 2f2135f4b6184e34847becd1ab82105104acde9e
12 changes: 1 addition & 11 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import nox
from nox.sessions import Session


HERE = Path(__file__).parent
POSARGS_PATTERN = re.compile(r"^(\w+)\[(.+)\]$")

Expand All @@ -21,14 +20,6 @@ def manage(session: Session) -> None:
session.run("python", "manage.py", *session.posargs)


@nox.session(reuse_venv=True)
def format(session: Session) -> None:
"""Run automatic code formatters"""
install_requirements_file(session, "check-style")
session.run("black", ".")
session.run("isort", ".")


@nox.session
def test(session: Session) -> None:
"""Run the complete test suite"""
Expand Down Expand Up @@ -70,15 +61,14 @@ def test_types(session: Session) -> None:
def test_style(session: Session) -> None:
"""Check that style guidelines are being followed"""
install_requirements_file(session, "check-style")
session.run("flake8", "src/reactpy_django", "tests")
session.run(
"black",
".",
"--check",
"--extend-exclude",
"/migrations/",
)
session.run("isort", ".", "--check-only")
session.run("ruff", "check", ".")


def install_requirements_file(session: Session, name: str) -> None:
Expand Down
17 changes: 7 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.isort]
multi_line_output = 3
force_grid_wrap = 0
use_parentheses = "True"
ensure_newline_before_comments = "True"
include_trailing_comma = "True"
line_length = 88
lines_after_imports = 2
extend_skip_glob = ["*/migrations/*", '.nox/*', '.venv/*', 'build/*']

[tool.mypy]
exclude = [
'migrations/.*',
Expand All @@ -22,3 +12,10 @@ warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
incremental = false

[tool.ruff.isort]
known-first-party = ["src", "tests"]

[tool.ruff]
ignore = ["E501"]
extend-exclude = ["*/migrations/*", ".venv/*", ".eggs/*", ".nox/*", "build/*"]
3 changes: 1 addition & 2 deletions requirements/check-style.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
black
flake8
isort
ruff
9 changes: 0 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
[bdist_wheel]
universal=1

[flake8]
ignore = E203, E266, E501, W503, F811, N802
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4,B9,N,ROH
exclude =
.eggs/*
.nox/*
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from setuptools.command.develop import develop
from setuptools.command.sdist import sdist


if sys.platform == "win32":
from subprocess import list2cmdline
else:
Expand All @@ -22,7 +21,7 @@ def list2cmdline(cmd_list):
return " ".join(map(pipes.quote, cmd_list))


log = getLogger()
log = getLogger() # noqa: F811
log.addHandler(StreamHandler(sys.stdout))


Expand Down
1 change: 0 additions & 1 deletion tests/test_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import sys
from pathlib import Path


# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
SRC_DIR = BASE_DIR.parent / "src"
Expand Down