Skip to content

Commit

Permalink
Merge pull request #162 from opensafely/iaindillingham/format
Browse files Browse the repository at this point in the history
Placate Black/Ruff
  • Loading branch information
iaindillingham authored Aug 20, 2024
2 parents 501d79f + ac76879 commit b35f901
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion analysis/report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"source": [
"log = {\n",
" d[\"event\"]: d\n",
" for d in (json.loads(l) for l in (OUTPUT_DIR / \"log.json\").read_text().splitlines())\n",
" for d in (\n",
" json.loads(line) for line in (OUTPUT_DIR / \"log.json\").read_text().splitlines()\n",
" )\n",
"}"
]
},
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ check: black ruff sqlfluff
# fix formatting and import sort ordering
fix: devenv
$BIN/black .
$BIN/ruff --fix .
$BIN/ruff format .
$BIN/sqlfluff fix .


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ skip_glob = [".direnv", "venv", ".venv"]

[tool.sqlfluff.core]
dialect = "tsql"
exclude_rules = ["structure.column_order", "references.keywords"]
exclude_rules = ["structure.column_order", "references.keywords", "capitalisation.identifiers"]

0 comments on commit b35f901

Please sign in to comment.