Skip to content

Commit

Permalink
fix ruff config section for ruff 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve committed Mar 21, 2024
1 parent 9b16772 commit 3e33bc9
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ dependencies = [
"jaxns>=2.4.8",
"jaxopt",
"numpy",
# "numpy<=1.24.4 ; sys_platform != 'darwin' or platform_machine != 'arm64'",
# "numpy @ https://github.com/numpy/numpy/releases/download/v1.24.4/numpy-1.24.4.tar.gz ; sys_platform == 'darwin' and platform_machine == 'arm64'",
"numpyro",
"prettytable",
"quadax @ git+https://github.com/f0uriest/quadax.git@640afd5bacc1a42f1e3c55c266fc5a02f668b2d1",
Expand All @@ -51,7 +49,7 @@ docs = [
"myst-nb",
"numpydoc",
]
dev = ["pre-commit>=3.6.0", "ruff"]
dev = ["pre-commit>=3.6.0", "ruff>=2.0"]


[project.urls]
Expand All @@ -74,11 +72,22 @@ build.targets.wheel.packages = ["src/elisa"]
python = ["3.9", "3.10", "3.11"]

[tool.ruff]
format.quote-style = "single"
lint.pydocstyle.convention = "numpy"
target-version = "py39"
line-length = 79
select = [
target-version = "py39"
extend-exclude = ["src/elisa/infer/nested_sampling.py"]
extend-include = ["*.ipynb"]
format.quote-style = "single"
lint.extend-select = ["Q"]
lint.flake8-quotes.inline-quotes = "single"
lint.ignore = [
"B028", # allow warnings without stacklevel
"C901", # allow functions with a high complexity
"E731", # allow lambda functions
]
lint.ignore-init-module-imports = true
lint.isort.known-first-party = ["elisa"]
lint.isort.combine-as-imports = true
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
Expand All @@ -87,18 +96,7 @@ select = [
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"B028", # allow warnings without stacklevel
"C901", # allow functions with a high complexity
"E731", # allow lambda functions
]
ignore-init-module-imports = true
extend-exclude = ["src/elisa/infer/nested_sampling.py"]
extend-include = ["*.ipynb"]
extend-select = ["Q"]
flake8-quotes.inline-quotes = "single"
isort.known-first-party = ["elisa"]
isort.combine-as-imports = true
lint.pydocstyle.convention = "numpy"

[tool.coverage.run]
parallel = true
Expand Down

0 comments on commit 3e33bc9

Please sign in to comment.