Skip to content

Commit

Permalink
Make pyproject.toml pretty again
Browse files Browse the repository at this point in the history
  • Loading branch information
JHolba committed Sep 18, 2024
1 parent c2dbbd8 commit 2e5aa92
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ build-backend = "setuptools.build_meta"
[project]
name = "ert"
authors = [
{name = "Equinor ASA", email = "[email protected]"},
{ name = "Equinor ASA", email = "[email protected]" },
]
description = "Ensemble based Reservoir Tool (ERT)"
requires-python = ">=3.8"
readme = "README.md"
license = {text = "GPL-3.0"}
classifiers=[
license = { text = "GPL-3.0" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Science/Research",
Expand All @@ -30,7 +30,7 @@ classifiers=[
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = ["version"]
dependencies=[
dependencies = [
"aiohttp",
"backports-datetime_fromisoformat; python_version < '3.11'",
"cryptography",
Expand All @@ -41,7 +41,7 @@ dependencies=[
"filelock",
"httpx",
"humanize",
"importlib_resources;python_version <= '3.8'",
"importlib_resources; python_version <= '3.8'",
"iterative_ensemble_smoother>=0.2.6",
"jinja2",
"lark",
Expand All @@ -66,7 +66,7 @@ dependencies=[
"scipy >= 1.10.1",
"seaborn",
"tables; python_version >= '3.9'", # extra dependency for pandas (hdf5)
"tables<3.9;python_version == '3.8'",
"tables<3.9; python_version == '3.8'",
"tabulate",
"tqdm>=4.62.0",
"typing_extensions>=4.5",
Expand Down Expand Up @@ -128,7 +128,7 @@ types = [
"types-decorator",
"types-docutils",
"types-tqdm",
"types-psutil"
"types-psutil",
]

[tool.setuptools]
Expand Down Expand Up @@ -159,45 +159,46 @@ line-length = 88

[tool.ruff.lint]
select = [
"W", # pycodestyle
"I", # isort
"B", # flake-8-bugbear
"SIM", # flake-8-simplify
"F", # pyflakes
"PL", # pylint
"NPY", # numpy specific rules
"C4", # flake8-comprehensions
"ASYNC", # flake8-async
"RUF", # ruff specific rules
"W", # pycodestyle
"I", # isort
"B", # flake-8-bugbear
"SIM", # flake-8-simplify
"F", # pyflakes
"PL", # pylint
"NPY", # numpy specific rules
"C4", # flake8-comprehensions
"ASYNC", # flake8-async
"RUF", # ruff specific rules
]
preview = true
ignore = ["PLW2901", # redefined-loop-name
"PLR2004", # magic-value-comparison
"PLR0915", # too-many-statements
"PLR0912", # too-many-branches
"PLR0911", # too-many-return-statements
"PLC2701", # import-private-name
"PLR6201", # literal-membership
"PLR0914", # too-many-locals
"PLR6301", # no-self-use
"PLW1641", # eq-without-hash
"PLR0904", # too-many-public-methods
"PLR1702", # too-many-nested-blocks
"PLW3201", # bad-dunder-method-name
ignore = [
"PLW2901", # redefined-loop-name
"PLR2004", # magic-value-comparison
"PLR0915", # too-many-statements
"PLR0912", # too-many-branches
"PLR0911", # too-many-return-statements
"PLC2701", # import-private-name
"PLR6201", # literal-membership
"PLR0914", # too-many-locals
"PLR6301", # no-self-use
"PLW1641", # eq-without-hash
"PLR0904", # too-many-public-methods
"PLR1702", # too-many-nested-blocks
"PLW3201", # bad-dunder-method-name
]

# Allow EN DASH (U+2013)
allowed-confusables = [""]

[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = [
"PLW0603", # global-statement
"RUF029", # unused-async
"RUF018", # assignment-in-assert
"RUF006", # asyncio-dangling-task
"PLW0603", # global-statement
"RUF029", # unused-async
"RUF018", # assignment-in-assert
"RUF006", # asyncio-dangling-task
]
"src/ert/dark_storage/json_schema/__init__.py" = ["F401"]
"src/ert/dark_storage/*" = ["RUF029"] # unused-async
"src/ert/dark_storage/*" = ["RUF029"] # unused-async

[tool.ruff.lint.pylint]
max-args = 20

0 comments on commit 2e5aa92

Please sign in to comment.