Skip to content

Commit 4dcafe4

Browse files
committed
feat: clean up isort and black
1 parent 19be00b commit 4dcafe4

File tree

4 files changed

+5
-100
lines changed

4 files changed

+5
-100
lines changed

.github/workflows/lint-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222

2323
- name: Install dependencies with uv
2424
run: |
25-
uv pip install ruff isort black
25+
uv pip install ruff
2626
- name: Run linters
2727
run: |
2828
uv run ruff check .
29-
uv run isort --check-only --diff .
29+
uv run ruff format --check .

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ def tests(session):
4343

4444
@nox.session(python=["3.11"])
4545
def lint(session):
46-
session.run("pip", "install", "black", "ruff")
47-
session.run("black", "robyn/", "integration_tests/")
46+
session.run("pip", "install", "ruff")
47+
session.run("ruff", "check", ".")
48+
session.run("ruff", "format", ".")

pyproject.toml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ test_server = "integration_tests.base_routes:main"
5050

5151
[dependency-groups]
5252
dev = [
53-
"black==23.1",
5453
"commitizen==2.40",
55-
"isort==5.11.5",
5654
"maturin==1.7.4",
5755
"pre-commit==2.21.0",
5856
"ruff>=0.9.0",
@@ -65,37 +63,13 @@ test = [
6563
"websocket-client==1.5.0",
6664
]
6765

68-
69-
7066
[tool.ruff]
7167
line-length = 160
7268
exclude = ["src/*", ".git", "docs"]
7369

7470
[tool.ruff.lint.mccabe]
7571
max-complexity = 10
7672

77-
[tool.isort]
78-
profile = "black"
79-
line_length = 160
80-
81-
[tool.black]
82-
line-length = 160
83-
target-version = ['py39']
84-
include = '\.pyi?$'
85-
extend-exclude = '''
86-
/(
87-
# directories
88-
\.eggs
89-
| \.git
90-
| \.hg
91-
| \.mypy_cache
92-
| \.tox
93-
| \.venv
94-
| build
95-
| dist
96-
)/
97-
'''
98-
9973
[tool.pytest.ini_options]
10074
markers = [
10175
"benchmark: marks tests as benchmarks for performance measurement (deselect with '-m \"not benchmark\"')",

uv.lock

Lines changed: 0 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)