Skip to content

Commit

Permalink
Add "dprint" configuration for automatic formatting of TOML files.
Browse files Browse the repository at this point in the history
Add "dprint" configuration for automatic formatting of TOML files.
  • Loading branch information
ghuls committed Feb 5, 2024
1 parent 29d0a81 commit f50c912
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
8 changes: 8 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"toml": {
},
"excludes": [],
"plugins": [
"https://plugins.dprint.dev/toml-0.6.0.wasm",
]
}
37 changes: 20 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -88,6 +88,9 @@ ignore = [
"D101",
]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.pycodestyle]
max-doc-length = 88

Expand All @@ -97,6 +100,6 @@ ban-relative-imports = "all"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
"tests",
]
addopts = "--verbose"

0 comments on commit f50c912

Please sign in to comment.