summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml67
1 files changed, 39 insertions, 28 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 004c32e..e95d231 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,9 +10,6 @@ keywords = ["LIRC", "IR"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
- "Programming Language :: Python :: 3.6",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
@@ -26,37 +23,51 @@ classifiers = [
]
[tool.taskipy.tasks]
-test = "task test_cov_missing"
-test_unit = "pytest tests/"
-test_cov = "task test_unit --cov=lirc/"
+test = "task test_cov_missing"
+test_unit = "pytest tests/"
+test_cov = "task test_unit --cov=lirc/"
test_cov_missing = "task test_cov -v --cov-report term-missing"
-test_ci = "task test_cov --cov-report=xml"
+test_ci = "task test_cov --cov-report=xml"
+lint = "ruff check"
+lint_fix = "ruff check --fix"
[tool.poetry.dependencies]
-python = "^3.6"
-
-[tool.poetry.dev-dependencies]
-flake8 = "^3.8.3"
-isort = "^5.0.4"
-pytest = "^7"
-pytest-cov = "^4"
-bump2version = "^1.0.0"
-taskipy = "^1.2.1"
-black = "^20.8b1"
-sphinx = "^3.1.2"
-sphinx_rtd_theme = "^0.5.0"
-codecov = "^2.1.7"
+python = "^3.9"
+
+[tool.poetry.group.dev.dependencies]
+taskipy = "^1.13.0"
+
+[tool.poetry.group.lint.dependencies]
+ruff = "^0.7.0"
+
+[tool.poetry.group.test.dependencies]
+pytest = "^8.3.3"
+pytest-cov = "^5.0.0"
+codecov = "^2.1.13"
+
+[tool.poetry.group.docs.dependencies]
+sphinx = { version = "^8.1.3", python = ">=3.10,<4.0" }
+sphinx_rtd_theme = "^3.0.1"
sphinxcontrib-napoleon = "^0.7"
-[tool.black]
-target_version = ['py36']
-include = '\.pyi?$'
+[tool.poetry.group.release.dependencies]
+bump2version = "^1.0.1"
+
+[tool.ruff]
+line-length = 88
+
+[tool.ruff.lint]
+extend-select = [
+ "I", # isort
+ "N", # pep8-naming
+ "PL", # pylint
+ "TID", # flake8-tidy-imports
+ "UP", # pyupgrade
+]
-[tool.isort]
-profile = "black"
-known_first_party = ["lirc"]
-known_third_party = ["pytest"]
+[tool.ruff.lint.pydocstyle]
+convention = "google"
[build-system]
-requires = ["poetry>=1.1"]
+requires = ["poetry>=1.1"]
build-backend = "poetry.masonry.api"