Skip to content

Commit

Permalink
Apply ruff format to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 4, 2024
1 parent c602701 commit 9f770a1
Show file tree
Hide file tree
Showing 48 changed files with 9,177 additions and 7,758 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ target-version = 'py312'
exclude = ["typings/"]

[tool.ruff.lint]
select = ["E", "F", "I", "NPY201"]
select = ["E", "F", "I"]
ignore = ["E722"]
unfixable = ["F841"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403", "E402"]
"**/cartons/bhm_*.py" = ["E501"]

[tool.ruff.lint.isort]
known-first-party = ["target_selection"]
Expand Down
17 changes: 8 additions & 9 deletions python/target_selection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,23 @@
from sdsstools import get_config, get_logger, get_package_version


NAME = 'sdss-target-selection'
NAME = "sdss-target-selection"

config = get_config('target_selection',
os.path.join(os.path.dirname(__file__),
'config/target_selection.yml'))
config = get_config(
"target_selection",
os.path.join(os.path.dirname(__file__), "config/target_selection.yml"),
)

log = get_logger(NAME)


__version__ = get_package_version(path=__file__,
package_name=NAME,
pep_440=True)
__version__ = get_package_version(path=__file__, package_name=NAME, pep_440=True)


manager = enlighten.get_manager()

# Avoid an annoying message when importing dustmaps
with open(os.path.expanduser('~/.dustmapsrc'), 'w') as f:
f.write('{}\n')
with open(os.path.expanduser("~/.dustmapsrc"), "w") as f:
f.write("{}\n")

from .xmatch import XMatchPlanner, XMatchModel # isort:skip
Loading

0 comments on commit 9f770a1

Please sign in to comment.