aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/pyproject.toml
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-03-04 03:58:29 +0800
committer简律纯 <i@jyunko.cn>2024-03-04 03:58:29 +0800
commitcff0ce84eef922912bcc277cd613e96f3571575e (patch)
tree434a0080d1fd8472310a12673d4112b811c3d730 /pyproject.toml
parent967ce6dc6fb3329b93293862c4e9178b8ce87091 (diff)
downloadHydroRollCore-cff0ce84eef922912bcc277cd613e96f3571575e.tar.gz
HydroRollCore-cff0ce84eef922912bcc277cd613e96f3571575e.zip
refactor!: rewrite in rust
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml99
1 files changed, 99 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..0698b02
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,99 @@
+[build-system]
+requires = ["maturin>=1.4,<2.0"]
+build-backend = "maturin"
+
+[project]
+name = "hydro_roll_core"
+dynamic = ["version"]
+description = "Core of HydroRoll System."
+authors = [{ name = "简律纯", email = "i@jyunko.cn" }]
+dependencies = [
+ "ply>=3.11",
+ "pip>=24.0",
+]
+requires-python = ">=3.9"
+readme = "README.rst"
+license = { text = "MIT" }
+
+[project.urls]
+homepage = "https://core.hydroroll.team/"
+repository = "https://github.com/HydroRoll-Team/HydroRollCore"
+documentation = "https://core.hydroroll.team/"
+
+
+[tool.pdm.dev-dependencies]
+docs = [
+ "furo>=2024.1.29",
+ "sphinx-autobuild>=2024.2.4",
+ "myst-parser>=2.0.0",
+ "sphinx>=7.2.6",
+ "tomli>=2.0.1",
+ "sphinx-design>=0.5.0",
+ "sphinx-intl>=2.1.0",
+]
+lint = [
+ "ruff>=0.3.0",
+]
+
+[tool.ruff]
+# Exclude a variety of commonly ignored directories.
+exclude = [
+ ".bzr",
+ ".direnv",
+ ".eggs",
+ ".git",
+ ".git-rewrite",
+ ".hg",
+ ".ipynb_checkpoints",
+ ".mypy_cache",
+ ".nox",
+ ".pants.d",
+ ".pyenv",
+ ".pytest_cache",
+ ".pytype",
+ ".ruff_cache",
+ ".svn",
+ ".tox",
+ ".venv",
+ ".vscode",
+ "__pypackages__",
+ "_build",
+ "buck-out",
+ "build",
+ "dist",
+ "node_modules",
+ "site-packages",
+ "venv",
+]
+
+# Same as Black.
+line-length = 88
+indent-width = 4
+
+# Assume Python 3.8
+target-version = "py38"
+
+[tool.ruff.lint]
+# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
+select = ["E4", "E7", "E9", "F"]
+ignore = []
+
+# Allow fix for all enabled rules (when `--fix`) is provided.
+fixable = ["ALL"]
+unfixable = []
+
+# Allow unused variables when underscore-prefixed.
+dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
+
+[tool.ruff.format]
+# Like Black, use double quotes for strings.
+quote-style = "double"
+
+# Like Black, indent with spaces, rather than tabs.
+indent-style = "space"
+
+# Like Black, respect magic trailing commas.
+skip-magic-trailing-comma = false
+
+# Like Black, automatically detect the appropriate line ending.
+line-ending = "auto"