Skip to content

Commit

Permalink
Fix ruff settings & remove flake8 and isort settings (#3356)
Browse files Browse the repository at this point in the history
* ruff settings

* remove isort split
  • Loading branch information
ordabayevy authored Apr 9, 2024
1 parent 725b135 commit 409bbb1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[tool.ruff]
line-length = 120


[tool.ruff.lint]
ignore = ["E741", "E721"]
select = ["E", "F", "I"]
2 changes: 0 additions & 2 deletions pyro/distributions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
except ImportError:
pass

# isort: split

from pyro.distributions.affine_beta import AffineBeta
from pyro.distributions.asymmetriclaplace import (
AsymmetricLaplace,
Expand Down
2 changes: 0 additions & 2 deletions pyro/distributions/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
except ImportError:
pass

# isort: split

import torch
from torch.distributions.constraints import __all__ as torch_constraints

Expand Down
2 changes: 0 additions & 2 deletions pyro/distributions/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
except ImportError:
pass

# isort: split

from torch.distributions import biject_to, transform_to
from torch.distributions.transforms import __all__ as torch_transforms

Expand Down
11 changes: 0 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
[flake8]
max-line-length = 120
exclude = docs/src, build, dist, .ipynb_checkpoints
extend-ignore = E721,E741,E203

[isort]
profile = black
skip_glob = .ipynb_checkpoints
known_first_party = pyro, tests
known_third_party = opt_einsum, six, torch, torchvision

[tool:pytest]
filterwarnings = error
ignore:numpy.ufunc size changed:RuntimeWarning
Expand Down

0 comments on commit 409bbb1

Please sign in to comment.