|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling==1.26.3"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[tool.hatch.build.targets.wheel] |
| 6 | +# In wheel, what do we want to include and exclude? |
| 7 | +packages = ["rendercv_fonts"] |
| 8 | + |
| 9 | +[tool.hatch.version] |
| 10 | +path = "rendercv_fonts/__init__.py" |
| 11 | + |
| 12 | +[project] |
| 13 | +name = 'rendercv-fonts' |
| 14 | +authors = [{ name = 'Sina Atalay', email = '[email protected]' }] |
| 15 | +description = 'Some fonts for RenderCV' |
| 16 | +license = "MIT" |
| 17 | +readme = "README.md" |
| 18 | +requires-python = '>=3.10' |
| 19 | +classifiers = [ |
| 20 | + "Intended Audience :: Science/Research", |
| 21 | + "Intended Audience :: Education", |
| 22 | +] |
| 23 | +dynamic = ["version"] |
| 24 | + |
| 25 | +[project.urls] |
| 26 | +Source = 'https://github.com/rendercv/rendercv-fonts' |
| 27 | + |
| 28 | +# ====================================================================================== |
| 29 | +# Virtual Environments Below =========================================================== |
| 30 | +# ====================================================================================== |
| 31 | + |
| 32 | +[tool.hatch.envs.default] |
| 33 | +installer = "uv" |
| 34 | +python = "3.13" |
| 35 | +dependencies = [ |
| 36 | + "ruff", # to lint and format the code |
| 37 | + "black", # to format the code |
| 38 | + "ipython", # for ipython shell |
| 39 | + "pyright", # to check the types |
| 40 | + "pytest", # for testing |
| 41 | +] |
| 42 | +[tool.hatch.envs.default.scripts] |
| 43 | +format = "ruff check --fix && ruff format && black rendercv_fonts" # hatch run format |
| 44 | +lint = "ruff check" # hatch run lint |
| 45 | +check-types = "pyright rendercv_fonts" # hatch run check-types |
| 46 | +test = "pytest tests" # hatch run test |
| 47 | + |
| 48 | +[tool.hatch.envs.test] |
| 49 | +template = "default" |
| 50 | +[[tool.hatch.envs.test.matrix]] |
| 51 | +python = ["3.10", "3.11", "3.12", "3.13"] |
| 52 | + |
| 53 | +# ====================================================================================== |
| 54 | +# Virtual Environments Above =========================================================== |
| 55 | +# ====================================================================================== |
| 56 | + |
| 57 | +[tool.ruff] |
| 58 | +line-length = 88 |
| 59 | + |
| 60 | +[tool.ruff.format] |
| 61 | +docstring-code-format = true |
| 62 | + |
| 63 | +[tool.ruff.lint] |
| 64 | +extend-select = [ |
| 65 | + "B", # flake8-bugbear |
| 66 | + "I", # isort |
| 67 | + "ARG", # flake8-unused-arguments |
| 68 | + "C4", # flake8-comprehensions |
| 69 | + "EM", # flake8-errmsg |
| 70 | + "ICN", # flake8-import-conventions |
| 71 | + "ISC", # flake8-implicit-str-concat |
| 72 | + "G", # flake8-logging-format |
| 73 | + "PGH", # pygrep-hooks |
| 74 | + "PIE", # flake8-pie |
| 75 | + "PL", # pylint |
| 76 | + "PT", # flake8-pytest-style |
| 77 | + "PTH", # flake8-use-pathlib |
| 78 | + "RET", # flake8-return |
| 79 | + "RUF", # Ruff-specific |
| 80 | + "SIM", # flake8-simplify |
| 81 | + "T20", # flake8-print |
| 82 | + "UP", # pyupgrade |
| 83 | + "YTT", # flake8-2020 |
| 84 | + "EXE", # flake8-executable |
| 85 | + "NPY", # NumPy specific rules |
| 86 | + "PD", # pandas-vet |
| 87 | +] |
| 88 | +ignore = [ |
| 89 | + "PLR", # Design related pylint codes |
| 90 | + "ISC001", # Conflicts with formatter |
| 91 | + "UP007", # I like Optional type |
| 92 | + "PGH003", # It would be nice to not ignore this |
| 93 | +] |
| 94 | +flake8-unused-arguments.ignore-variadic-names = true |
| 95 | + |
| 96 | +[tool.black] |
| 97 | +line-length = 88 # maximum line length |
| 98 | +preview = true # to allow enable-unstable-feature |
| 99 | +enable-unstable-feature = [ |
| 100 | + "string_processing", |
| 101 | +] # to break strings into multiple lines |
0 commit comments