78 lines
1.8 KiB
TOML
78 lines
1.8 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=67"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "archinstall"
|
|
dynamic = ["version"]
|
|
description = "Arch Linux installer - guided, templates etc."
|
|
authors = [
|
|
{name = "Anton Hvornum", email = "anton@hvornum.se"},
|
|
]
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
|
|
keywords = ["linux", "arch", "archinstall", "installer"]
|
|
|
|
classifiers = [
|
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
"Operating System :: POSIX :: Linux",
|
|
]
|
|
|
|
[project.urls]
|
|
Home = "https://archlinux.org"
|
|
Documentation = "https://archinstall.readthedocs.io/"
|
|
Source = "https://github.com/archlinux/archinstall"
|
|
|
|
[project.scripts]
|
|
archinstall = "archinstall:run_as_a_module"
|
|
|
|
[project.optional-dependencies]
|
|
doc = ["sphinx"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
exclude = "tests"
|
|
|
|
[tool.bandit]
|
|
targets = ["archinstall"]
|
|
exclude = ["/tests"]
|
|
|
|
[tool.ruff]
|
|
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
|
select = ["E", "F"]
|
|
ignore = []
|
|
|
|
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
|
fixable = ["A", "B", "C", "D", "E", "F"]
|
|
unfixable = []
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
exclude = [
|
|
".eggs",
|
|
".git",
|
|
".mypy_cache",
|
|
".ruff_cache",
|
|
".venv",
|
|
"__pypackages__",
|
|
"build",
|
|
"dist",
|
|
"venv",
|
|
]
|
|
|
|
# Same as Black.
|
|
line-length = 255
|
|
|
|
# Allow unused variables when underscore-prefixed.
|
|
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
|
|
# Assume Python 3.10.
|
|
target-version = "py310"
|
|
|
|
[tool.ruff.mccabe]
|
|
# Unlike Flake8, default to a complexity level of 10.
|
|
max-complexity = 10 |