|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "trackio" |
| 7 | +description = "A small Python library created to help developers protect their applications from Server Side Request Forgery (SSRF) attacks." |
| 8 | +authors = [ |
| 9 | + { name = "Abubakar Abid", email = "abubakar@hf.co" } |
| 10 | +] |
| 11 | +readme = "README.md" |
| 12 | +requires-python = ">3.9" |
| 13 | +dependencies = [ |
| 14 | +] |
| 15 | +classifiers = [ |
| 16 | + "Programming Language :: Python :: 3", |
| 17 | + "License :: OSI Approved :: MIT License", |
| 18 | + "Operating System :: OS Independent", |
| 19 | +] |
| 20 | +dynamic = ["version"] |
| 21 | + |
| 22 | +[project.urls] |
| 23 | +homepage = "https://github.com/gradio-app/trackio" |
| 24 | +repository = "https://github.com/gradio-app/trackio" |
| 25 | + |
| 26 | +[project.optional-dependencies] |
| 27 | +dev = [ |
| 28 | + "pytest", |
| 29 | + "ruff==0.9.3" |
| 30 | +] |
| 31 | + |
| 32 | +[tool.hatch.build.targets.wheel] |
| 33 | +packages = ["trackio"] |
| 34 | + |
| 35 | +[tool.hatch.version] |
| 36 | +path = "trackio/version.txt" |
| 37 | +pattern = "^(?P<version>[0-9]+\\.[0-9]+\\.[0-9]+)$" |
| 38 | + |
| 39 | +[tool.ruff] |
| 40 | +# Exclude a variety of commonly ignored directories. |
| 41 | +exclude = [ |
| 42 | + ".git", |
| 43 | + ".mypy_cache", |
| 44 | + ".ruff_cache", |
| 45 | + ".venv", |
| 46 | + "__pycache__", |
| 47 | + "build", |
| 48 | + "dist", |
| 49 | +] |
| 50 | + |
| 51 | +# Same as Black. |
| 52 | +line-length = 88 |
| 53 | +indent-width = 4 |
| 54 | + |
| 55 | +# Assume Python 3.8 |
| 56 | +target-version = "py38" |
| 57 | + |
| 58 | +[tool.ruff.lint] |
| 59 | +# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) |
| 60 | +select = ["E", "F", "I"] |
| 61 | +# Ignore line length violations |
| 62 | +ignore = ["E501"] |
| 63 | + |
| 64 | +# Allow autofix for all enabled rules (when `--fix`) is provided. |
| 65 | +fixable = ["ALL"] |
| 66 | + |
| 67 | +# Allow unused variables when underscore-prefixed. |
| 68 | +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 69 | + |
| 70 | +[tool.ruff.format] |
| 71 | +# Use single quotes for strings. |
| 72 | +quote-style = "double" |
| 73 | + |
| 74 | +# Indent with spaces, rather than tabs. |
| 75 | +indent-style = "space" |
| 76 | + |
| 77 | +# Like Black, respect magic trailing commas. |
| 78 | +skip-magic-trailing-comma = false |
| 79 | + |
| 80 | +# Like Black, automatically detect the appropriate line ending. |
| 81 | +line-ending = "auto" |
0 commit comments