aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-04-27 22:28:08 +0100
committerGravatar GitHub <[email protected]>2023-04-27 22:28:08 +0100
commitfffe818885154fcc54b399f13155ee95a1a408bc (patch)
tree86ead71bb3b5d57f886b77a45455d43bfa2cd5ec /pyproject.toml
parentbuild(deps): bump pydantic from 1.10.5 to 1.10.7 (#50) (diff)
parentFix linting errors from new ruff rules (diff)
Merge pull request #54 from python-discord/migrate-to-ruff
Migrate to ruff
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml41
1 files changed, 29 insertions, 12 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 28970e5..794755d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,31 +12,48 @@ python = "3.10.*"
pydis-core = "9.5.1"
pydantic = {extras = ["dotenv"], version = "1.10.7"}
-loguru = "0.6.0"
+loguru = "0.7.0"
kubernetes_asyncio = "24.2.2"
tabulate = {extras = ["widechars"], version = "0.9.0"}
jishaku = "2.5.1"
[tool.poetry.dev-dependencies]
-flake8 = "6.0.0"
-flake8-annotations = "3.0.0"
-flake8-bandit = "4.1.1"
-flake8-docstrings = "1.7.0"
-flake8-isort = "6.0.0"
-
black = "23.3.0"
-taskipy = "1.10.4"
isort = "5.12.0"
+taskipy = "1.10.4"
+ruff = "0.0.263"
[tool.taskipy.tasks]
start = "python -m arthur"
-lint = "flake8"
+lint = "ruff"
format = "black arthur"
-[tool.black]
-line-length = 100
-
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
+
+[tool.black]
+line-length = 100
+
+[tool.isort]
+profile = "black"
+line_length = 120
+
+[tool.ruff]
+target-version = "py311"
+extend-exclude = [".cache"]
+ignore = [
+ "ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
+ "B904",
+ "C401", "C408",
+ "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301",
+ "D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417",
+ "E731",
+ "RET504",
+ "RUF005",
+ "S311",
+ "SIM102", "SIM108",
+]
+line-length = 100
+select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"] \ No newline at end of file