Skip to content

Commit

Permalink
Improve ruff config, pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wthueb committed Mar 3, 2024
1 parent 6939f6d commit 0c97490
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fail_fast: false

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.3.0
hooks:
- id: ruff
args: [ --fix ]
Expand Down
42 changes: 19 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["setuptools==61.*", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "wi1-bot"
description = "Discord bot for Radarr/Sonarr integration"
Expand All @@ -16,23 +12,14 @@ classifiers = [
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"discord.py==2.3.1",
"Flask==2.3.2",
"mongoengine==0.27.0",
"discord.py==2.3.2",
"Flask==3.0.2",
"mongoengine==0.28.0",
"pyarr==5.2.0",
"PyYAML==6.0.1",
"requests==2.31.0"
]

[project.optional-dependencies]
dev = [
"mongo-types==0.15.1",
"mypy==1.2.0",
"pre-commit==3.2.2",
"ruff==0.1.6",
"types-PyYAML==6.0.12.9",
]

[project.urls]
Homepage = "https://github.com/wthueb/wi1-bot"

Expand All @@ -41,19 +28,28 @@ wi1-bot = "wi1_bot.scripts.start:main"
transcode-item = "wi1_bot.scripts.transcode_item:main"
add-tag = "wi1_bot.scripts.add_tag:main"

[project.optional-dependencies]
dev = [
"mongo-types==0.15.1",
"mypy==1.3.0",
"pre-commit==3.6.2",
"ruff==0.3.0",
"types-PyYAML==6.0.12.12",
]

[build-system]
requires = ["setuptools==61.*", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["wi1_bot"]

[tool.setuptools_scm]
write_to = "wi1_bot/_version.py"

[tool.ruff.lint]
select = ["E", "F", "I"]

[tool.mypy]
packages = "wi1_bot"
strict = true

[[tool.mypy.overrides]]
module = [
"pushover",
"pyarr",
]
ignore_missing_imports = true

0 comments on commit 0c97490

Please sign in to comment.