Skip to content

Commit ae89d6a

Browse files
committed
moved ruff.toml contents into pyproject.toml
1 parent 031157a commit ae89d6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+178
-403
lines changed

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,36 @@ packages = ["viscy"]
7474
[tool.setuptools_scm]
7575
write_to = "viscy/_version.py"
7676

77+
[tool.ruff]
78+
line-length = 88
79+
src = ["viscy", "tests"]
80+
extend-include = ["*.ipynb"]
81+
target-version = "py311"
82+
# Exclude the following for now. Later on we should check every Python file.
83+
extend-exclude = ["viscy/scripts/*", "applications/*", "examples/*"]
84+
85+
[tool.ruff.format]
86+
quote-style = "double"
87+
indent-style = "space"
88+
docstring-code-format = true
89+
docstring-code-line-length = "dynamic"
90+
91+
[tool.ruff.lint]
92+
select = [
93+
"D", # pydocstyle
94+
"I", # isort
95+
]
96+
ignore = [
97+
"D100", # Missing docstring in public module
98+
"D104", # Missing docstring in public package
99+
"D105", # __magic__ methods are often self-explanatory, allow missing docstrings
100+
"D107", # Missing docstring in __init__
101+
# Disable one in each pair of mutually incompatible rules
102+
"D203", # We don’t want a blank line before a class docstring
103+
"D213", # <> We want docstrings to start immediately after the opening triple quote
104+
"D400", # first line should end with a period [Bug: doesn’t work with single-line docstrings]
105+
"D401", # First line should be in imperative mood; try rephrasing
106+
]
107+
per-file-ignores."*/__init__.py" = ["F401"]
108+
per-file-ignores."tests/*" = ["D"]
109+
pydocstyle.convention = "numpy"

ruff.toml

Lines changed: 0 additions & 38 deletions
This file was deleted.

viscy/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
"""Learning vision for cells."""

viscy/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Lightning CLI for computer vision models in VisCy."""
2-
31
import logging
42
import os
53
import sys

viscy/data/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
"""VisCy data loading and preprocessing modules."""

viscy/data/cell_classification.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Dataset and DataModule classes for cell classification tasks."""
2-
31
from collections.abc import Callable
42
from pathlib import Path
53

viscy/data/combined.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
"""Combined data modules for multi-dataset ML training workflows.
2-
3-
This module provides Lightning DataModule implementations for combining multiple
4-
data sources with various strategies including concatenation, batching, and
5-
distributed sampling optimizations for computer vision and microscopy datasets.
6-
"""
7-
81
import bisect
92
import logging
103
from collections import defaultdict

viscy/data/ctmc_v1.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Data module for CTMCv1 autoregression dataset with HCS OME-Zarr stores."""
2-
31
from pathlib import Path
42

53
import torch

viscy/data/distributed.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""Utilities for DDP training."""
2-
31
from __future__ import annotations
42

53
import math

viscy/data/gpu_aug.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"""GPU-accelerated data augmentation modules for microscopy ML training."""
2-
31
from __future__ import annotations
42

53
from abc import ABC, abstractmethod

0 commit comments

Comments
 (0)