Skip to content

Commit 43564a6

Browse files
committed
🔧 Add configuration for the Ruff linter
1 parent 3a8618f commit 43564a6

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pyproject.toml

+20
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,32 @@ test = [
4949
"pytest-cov",
5050
"pytest-env",
5151
]
52+
5253
[tool.ruff]
5354
line-length = 79
5455

5556
[tool.ruff.format]
5657
quote-style = "single"
5758

59+
[tool.ruff.lint]
60+
select = [
61+
# pycodestyle
62+
"E",
63+
# Pyflakes
64+
"F",
65+
# pyupgrade
66+
"UP",
67+
# flake8-bugbear
68+
"B",
69+
# flake8-simplify
70+
"SIM",
71+
# isort
72+
"I",
73+
]
74+
75+
[tool.ruff.lint.isort]
76+
known-local-folder = ["gcm"]
77+
5878
[tool.mypy]
5979
files = "src/**/*.py"
6080
strict = true

tests/commands/test_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from unittest.mock import call, patch
33

44
import pytest
5+
56
from gcm.commands.base import PACKAGE_NAME, Command, ensure_desired_env_line
67

78
DUMMY_CCACHE = """# foo

0 commit comments

Comments
 (0)