Skip to content

Commit

Permalink
🐛 fix wrongly merged pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Dec 12, 2024
1 parent a1e9815 commit b45f243
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 30 deletions.
12 changes: 6 additions & 6 deletions etl/version_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,14 @@ def _days_since_step_creation(version):
] = UpdateState.ARCHIVABLE.value

# There are special steps that, even though they are archivable or unused, we want to keep in the active dag.
steps_active_df.loc[
steps_active_df["step"].isin(self.ARCHIVABLE_STEPS_TO_KEEP), "update_state"
] = UpdateState.UP_TO_DATE.value
steps_active_df.loc[steps_active_df["step"].isin(self.ARCHIVABLE_STEPS_TO_KEEP), "update_state"] = (
UpdateState.UP_TO_DATE.value
)

# All explorers and external steps should be considered up to date.
steps_active_df.loc[
steps_active_df["channel"].isin(["explorers", "external"]), "update_state"
] = UpdateState.UP_TO_DATE.value
steps_active_df.loc[steps_active_df["channel"].isin(["explorers", "external"]), "update_state"] = (
UpdateState.UP_TO_DATE.value
)

# Add update state to archived steps.
steps_inactive_df["update_state"] = UpdateState.ARCHIVED.value
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dependencies = [
"scikit-learn>=1.5.2",
"geopy>=2.4.1",
"py7zr>=0.22.0",
"pyreadr>=0.5.2",
]

[tool.uv.sources]
Expand Down Expand Up @@ -106,7 +107,7 @@ dev-dependencies = [
# unpinning those would introduce tons of type errors
"pyright==1.1.373",
"pandas-stubs==1.2.0.62",
"ruff==0.1.6",
"ruff>=0.8.2",
"ipdb>=0.13.13",
]

Expand Down Expand Up @@ -147,16 +148,17 @@ compare = 'etl.compare:cli'
backport = 'apps.backport.backport:backport_cli'

[tool.ruff]
extend-select = [
lint.extend-select = [
# isort
"I"
]
ignore = ["E501"]
lint.ignore = ["E501"]
line-length = 120
target-version = "py310"
extend-exclude = [
".ipynb_checkpoints",
"*cookiecutter",
"*.ipynb",
]

[build-system]
Expand Down
Loading

0 comments on commit b45f243

Please sign in to comment.