Skip to content

Commit 7cfc6dd

Browse files
committed
update struct of project.
1 parent ed6981f commit 7cfc6dd

6 files changed

Lines changed: 13 additions & 16 deletions

File tree

pyproject.toml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,32 @@ description = "A package and gh-action to generate quality reports on Hugging Fa
99
readme = "README.md"
1010
requires-python = ">=3.9"
1111
license = { text = "Apache-2.0" }
12-
classifiers = [
13-
"Programming Language :: Python :: 3",
14-
"License :: OSI Approved :: Apache Software License",
15-
"Operating System :: OS Independent"
16-
]
1712
authors = [
1813
{ name = "Parag Ekbote", email = "paragekbote23@gmail.com" }
1914
]
20-
2115
dependencies = [
2216
"huggingface_hub>=0.24.0",
2317
"transformers>=4.21.0",
2418
"python-dotenv>=1.0.0",
25-
"rich>=13.9.0"
19+
"rich>=13.9.0",
2620
]
2721

2822
[project.urls]
29-
Homepage = "https://github.com/ParagEkbote/hf-model-inspector"
30-
Repository = "https://github.com/ParagEkbote/hf-model-inspector"
31-
Issues = "https://github.com/ParagEkbote/hf-model-inspector/issues"
23+
homepage = "https://github.com/ParagEkbote/hf-model-inspector"
24+
repository = "https://github.com/ParagEkbote/hf-model-inspector"
25+
issues = "https://github.com/ParagEkbote/hf-model-inspector/issues"
26+
27+
[tool.hatch.build]
28+
source-directories = ["src"]
3229

3330
[tool.hatch.build.targets.wheel]
34-
packages = ["src/hf_model_inspector"]
31+
packages = ["hf_model_inspector"]
3532

3633
[tool.ruff]
3734
line-length = 88
38-
target-version = "py39"
35+
target-version = ["py39"]
3936
select = ["E", "F", "B", "I", "UP"]
40-
ignore = ["E501"]
37+
ignore = ["E501"] # optional, keep if you want to ignore long-line warnings
4138

4239
[tool.ty]
4340
strict = true
@@ -52,11 +49,11 @@ dependencies = [
5249
"pytest",
5350
"pytest-asyncio",
5451
"pre-commit",
55-
"twine"
52+
"twine",
5653
]
5754

5855
[tool.hatch.envs.default.scripts]
59-
lint = "ruff check . && ty src"
60-
format = "ruff format ."
56+
lint = "ruff check src"
57+
format = "ruff format src"
6158
test = "pytest -v"
6259
precommit = "pre-commit run --all-files"
File renamed without changes.

0 commit comments

Comments
 (0)