Skip to content

Commit e49076b

Browse files
committed
chore: fix formatting in python
1 parent 56b52ae commit e49076b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ python_fmt: ## Format python code
88

99
.PHONY: python_lint
1010
python_lint: ## Lint python code
11+
ruff format --check .
1112
ruff check .
1213

1314
.PHONY: python_test
@@ -23,4 +24,4 @@ python_generate_gha: ## Generate GitHub Actions workflow
2324
maturin generate-ci github --manifest-path "crates/cli/Cargo.toml" --output .github/workflows/python-ci.yaml
2425

2526
.PHONY: ci
26-
ci: python_fmt python_lint python_test ## Run all CI checks
27+
ci: python_lint python_test ## Run all CI checks

crates/lib/src/templaters/sqruff_templaters/jinja_templater.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ def _extract_libraries_from_config(self, config: FluffConfig) -> Dict[str, Any]:
287287
# the guidance of the python docs:
288288
# https://docs.python.org/3/library/importlib.html#approximating-importlib-import-module
289289
spec = module_finder.find_spec(module_name, None)
290-
assert (
291-
spec
292-
), f"Module {module_name} failed to be found despite being listed."
290+
assert spec, (
291+
f"Module {module_name} failed to be found despite being listed."
292+
)
293293
module = importlib.util.module_from_spec(spec)
294294
sys.modules[module_name] = module
295295
assert spec.loader, f"Module {module_name} missing expected loader."

0 commit comments

Comments
 (0)