Skip to content

Commit 409bbb1

Browse files
authored
Fix ruff settings & remove flake8 and isort settings (#3356)
* ruff settings * remove isort split
1 parent 725b135 commit 409bbb1

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[tool.ruff]
22
line-length = 120
3+
4+
5+
[tool.ruff.lint]
36
ignore = ["E741", "E721"]
47
select = ["E", "F", "I"]

pyro/distributions/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
except ImportError:
5454
pass
5555

56-
# isort: split
57-
5856
from pyro.distributions.affine_beta import AffineBeta
5957
from pyro.distributions.asymmetriclaplace import (
6058
AsymmetricLaplace,

pyro/distributions/constraints.py

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
except ImportError:
4343
pass
4444

45-
# isort: split
46-
4745
import torch
4846
from torch.distributions.constraints import __all__ as torch_constraints
4947

pyro/distributions/transforms/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
except ImportError:
3232
pass
3333

34-
# isort: split
35-
3634
from torch.distributions import biject_to, transform_to
3735
from torch.distributions.transforms import __all__ as torch_transforms
3836

setup.cfg

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
[flake8]
2-
max-line-length = 120
3-
exclude = docs/src, build, dist, .ipynb_checkpoints
4-
extend-ignore = E721,E741,E203
5-
6-
[isort]
7-
profile = black
8-
skip_glob = .ipynb_checkpoints
9-
known_first_party = pyro, tests
10-
known_third_party = opt_einsum, six, torch, torchvision
11-
121
[tool:pytest]
132
filterwarnings = error
143
ignore:numpy.ufunc size changed:RuntimeWarning

0 commit comments

Comments
 (0)