Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ruff settings & remove flake8 and isort settings #3356

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading