Skip to content

Commit 47c8fc7

Browse files
Codebase cleanup and migration to fmcore, bears, pydantic v2
1) Migrated codebase to bears=0.1.4 and fmcore=0.1.4 2) Reformatted using Ruff 3) Removed "import *" 4) Updated Ruff linting rules to disallow star imports and ignore unused vars. 5) Removed unused requirements.txt
1 parent 6d4ec18 commit 47c8fc7

File tree

11 files changed

+1126
-2264
lines changed

11 files changed

+1126
-2264
lines changed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ authors = [
1010
]
1111
description = "Synthesizing realistic and diverse text-datasets from augmented LLMs."
1212
readme = "README.md"
13-
requires-python = ">=3.11"
13+
requires-python = ">=3.11.11"
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
1616
"Operating System :: OS Independent",
1717
]
1818
license-files = ["LICENSE"]
1919
dependencies = [
20+
"bears[all]",
2021
"fmcore[all]",
2122
]
2223

@@ -52,7 +53,6 @@ ignore = [
5253
"E731", # lambda-assignment: https://docs.astral.sh/ruff/rules/lambda-assignment/
5354
"E741", # ambiguous-variable-name: https://docs.astral.sh/ruff/rules/ambiguous-variable-name/
5455

55-
## Ignored because of bad interaction with `from typing import *`
56-
"F405", # undefined-local-with-import-star-usage: https://docs.astral.sh/ruff/rules/undefined-local-with-import-star-usage/
57-
"F403", # undefined-local-with-import-star: https://docs.astral.sh/ruff/rules/undefined-local-with-import-star/
56+
## Ignored because it causes no harm (and is needed sometimes):
57+
"F841", # unused-variable: https://docs.astral.sh/ruff/rules/unused-variable/
5858
]

requirements.txt

Lines changed: 0 additions & 286 deletions
This file was deleted.

src/synthesizrr/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Import in dependency order:
2+
_LIBRARY_NAME: str = 'synthesizrr'
23
import synthesizrr.data
34
import synthesizrr.common
45
import synthesizrr.generation

0 commit comments

Comments
 (0)