Skip to content

Commit

Permalink
style: enable style check
Browse files Browse the repository at this point in the history
  • Loading branch information
necusjz committed Dec 17, 2023
1 parent ef732e4 commit 5120419
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"]
1 change: 1 addition & 0 deletions scripts/release_notes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import os

import packaging.version

TAG = os.environ["TAG"]
Expand Down
3 changes: 1 addition & 2 deletions src/splatbot/controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from nxbt import Nxbt
from nxbt import PRO_CONTROLLER
from nxbt import PRO_CONTROLLER, Nxbt


class Button:
Expand Down
4 changes: 1 addition & 3 deletions src/splatbot/start.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 5120419

Please sign in to comment.