diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5d1c541..b719ae4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -39,6 +39,12 @@ jobs: name: Lint run: ruff check . + - python: "3.10" + task: + name: Style + run: | + isort --check . + - python: "3.10" task: name: Build diff --git a/pyproject.toml b/pyproject.toml index d8d7f14..b5b5f27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ requires-python = ">=3.8" readme = "README.md" classifiers = [ "Topic :: Scientific/Engineering :: Artificial Intelligence", - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Intended Audience :: Science/Research", @@ -31,6 +31,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "build>=1.0.3", + "isort>=5.6.4", "packaging>=23.1", "pytest>=7.2.1", "ruff>=0.1.2", @@ -54,10 +55,3 @@ exclude = [ [tool.setuptools.dynamic] version = {attr = "src.splatbot.version.VERSION"} - -[tool.ruff] -line-length = 120 -target-version = "py310" - -[tool.ruff.per-file-ignores] -"__init__.py" = ["F401"] diff --git a/scripts/release_notes.py b/scripts/release_notes.py index 65d89f1..0e5ecbc 100644 --- a/scripts/release_notes.py +++ b/scripts/release_notes.py @@ -1,5 +1,6 @@ #!/usr/bin/env python import os + import packaging.version TAG = os.environ["TAG"] diff --git a/src/splatbot/controller.py b/src/splatbot/controller.py index cd4ff2c..27ac9a0 100644 --- a/src/splatbot/controller.py +++ b/src/splatbot/controller.py @@ -1,5 +1,4 @@ -from nxbt import Nxbt -from nxbt import PRO_CONTROLLER +from nxbt import PRO_CONTROLLER, Nxbt class Button: diff --git a/src/splatbot/start.py b/src/splatbot/start.py index 1d5321e..badacdd 100644 --- a/src/splatbot/start.py +++ b/src/splatbot/start.py @@ -1,10 +1,8 @@ import time -from .controller import Button -from .controller import Controller +from .controller import Button, Controller from .simulation import dry_run - command_map = { "a": Button.A, "b": Button.B,