From f50c912c01937edd3b429f34a29b23ce5db55b52 Mon Sep 17 00:00:00 2001 From: Gert Hulselmans Date: Mon, 5 Feb 2024 17:18:18 +0100 Subject: [PATCH] Add "dprint" configuration for automatic formatting of TOML files. Add "dprint" configuration for automatic formatting of TOML files. --- dprint.json | 8 ++++++++ pyproject.toml | 37 ++++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 dprint.json diff --git a/dprint.json b/dprint.json new file mode 100644 index 0000000..94a1fa2 --- /dev/null +++ b/dprint.json @@ -0,0 +1,8 @@ +{ + "toml": { + }, + "excludes": [], + "plugins": [ + "https://plugins.dprint.dev/toml-0.6.0.wasm", + ] +} diff --git a/pyproject.toml b/pyproject.toml index cfa6ce9..061d270 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,20 +6,20 @@ build-backend = "maturin" name = "scatac_fragment_tools" requires-python = ">=3.8" classifiers = [ - "Programming Language :: Rust", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", + "Programming Language :: Rust", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", ] dynamic = ["version"] dependencies = [ - "numpy", - "pyBigWig", - "pybigtools", - "polars", - "pyarrow", - "numba", - "rich-argparse", - "joblib" + "numpy", + "pyBigWig", + "pybigtools", + "polars", + "pyarrow", + "numba", + "rich-argparse", + "joblib", ] [tool.maturin] @@ -28,10 +28,10 @@ module-name = "scatac_fragment_tools._rust_scatac_fragment_tools" [project.optional-dependencies] development = [ - "mypy", - "black", - "ruff", - "pytest", + "mypy", + "black", + "ruff", + "pytest", ] [project.scripts] @@ -40,7 +40,7 @@ scatac_fragment_tools = "scatac_fragment_tools.cli.main:main" [tool.ruff] target-version = "py38" line-length = 88 -#fix = true +# fix = true select = [ "E", # pycodestyle @@ -88,6 +88,9 @@ ignore = [ "D101", ] +[tool.ruff.format] +docstring-code-format = true + [tool.ruff.pycodestyle] max-doc-length = 88 @@ -97,6 +100,6 @@ ban-relative-imports = "all" [tool.pytest.ini_options] minversion = "6.0" testpaths = [ - "tests", + "tests", ] addopts = "--verbose"