From 92e82ba6e6c13bb66d2fa2bfd14838e5b7512dae Mon Sep 17 00:00:00 2001 From: Nick Murphy Date: Thu, 31 Aug 2023 11:24:16 -0400 Subject: [PATCH] pre-commit run --all-files --- pyproject.toml | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c7628b4e..6d13a5ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,31 @@ requires = [ "wheel>=0.34", ] # ought to mirror 'requirements/build.txt' +[tool.ruff] +target-version = "py39" +show-fixes = true +extend-select = [ + "UP", # pyupgrade +] +ignore = [ + "E501", +] +extend-exclude = [ + ".jupyter", + "__pycache__", + "_build", + "_dev", +] + +[tool.ruff.flake8-import-conventions.aliases] +"astropy.units" = "u" +"matplotlib.pyplot" = "plt" +numpy = "np" +pandas = "pd" + +[tool.ruff.per-file-ignores] +"__init__.py" = ["E402", "F401", "F402", "F403"] # ignore import errors + [tool.isort] line_length = 88 wrap_length = 80 @@ -32,31 +57,6 @@ te [tool.gilesbot.pull_requests] enabled = true -[tool.ruff] -target-version = "py39" -show-fixes = true -extend-select = [ - "UP", # pyupgrade -] -ignore = [ - "E501", -] -extend-exclude = [ - ".jupyter", - "__pycache__", - "_build", - "_dev", -] - -[tool.ruff.flake8-import-conventions.aliases] -"astropy.units" = "u" -"matplotlib.pyplot" = "plt" -numpy = "np" -pandas = "pd" - -[tool.ruff.per-file-ignores] -"__init__.py" = ["E402", "F401", "F402", "F403"] # ignore import errors - [tool.towncrier] package = "xrtpy" name = "XRTpy"