118 lines
3.4 KiB
TOML
118 lines
3.4 KiB
TOML
|
[build-system]
|
||
|
requires = ["hatchling"]
|
||
|
build-backend = "hatchling.build"
|
||
|
|
||
|
[project]
|
||
|
name = "pogo-scaled-estimators"
|
||
|
version = "1.0a1"
|
||
|
dependencies = [
|
||
|
"requests",
|
||
|
]
|
||
|
requires-python = ">=3.12"
|
||
|
authors = [
|
||
|
{ name = "Zoé Cassiopée Gauthier", email = "zoe.gauthier@blorp.dev" },
|
||
|
]
|
||
|
description = "Calculates scaled difficulty estimators from Pokebattler simulations."
|
||
|
readme = "README.md"
|
||
|
license = "MIT"
|
||
|
keywords = []
|
||
|
classifiers = [
|
||
|
"Development Status :: 3 - Alpha",
|
||
|
"License :: OSI Approved :: MIT License",
|
||
|
"Programming Language :: Python",
|
||
|
"Programming Language :: Python :: 3.12",
|
||
|
"Programming Language :: Python :: Implementation :: CPython",
|
||
|
]
|
||
|
|
||
|
[project.urls]
|
||
|
"Source" = "https://git.blorp.dev/zo/pogo-scaled-estimators"
|
||
|
|
||
|
[project.scripts]
|
||
|
ase-cli = "pogo_scaled_estimators:main_cli"
|
||
|
|
||
|
[tool.hatch.envs.lint]
|
||
|
detached = true
|
||
|
dependencies = [
|
||
|
"pyright",
|
||
|
"ruff",
|
||
|
]
|
||
|
|
||
|
[tool.hatch.envs.lint.scripts]
|
||
|
all = ["style", "typing"]
|
||
|
format = ["ruff format --fix {args:.}"]
|
||
|
style = ["ruff check {args:.}"]
|
||
|
typing = ["pyright"]
|
||
|
|
||
|
[tool.ruff]
|
||
|
target-version = "py312"
|
||
|
line-length = 120
|
||
|
|
||
|
[tool.ruff.lint]
|
||
|
select = [
|
||
|
# Note: these are ordered to match https://beta.ruff.rs/docs/rules/
|
||
|
"F", # PyFlakes
|
||
|
"E", # pycodestyle errors
|
||
|
"W", # pycodestyle warnings
|
||
|
"I", # isort
|
||
|
"N", # pep8-naming
|
||
|
"UP", # pyupgrade
|
||
|
"ASYNC", # flake8-async
|
||
|
"BLE", # flake8-blind-except
|
||
|
"FBT", # flake8-boolean-trap
|
||
|
"B", # flake8-bugbear
|
||
|
"A", # flake8-builtins
|
||
|
"COM", # flake8-commas
|
||
|
"C4", # flake8-comprehensions
|
||
|
"DTZ", # flake8-datetimez
|
||
|
"T10", # flake8-debugger
|
||
|
"EM", # flake8-errmsg
|
||
|
"ISC", # flake8-implicit-str-concat
|
||
|
"PIE", # flake8-pie
|
||
|
"PT", # flake8-pytest-style
|
||
|
"Q", # flake8-quotes
|
||
|
"RET", # flake8-return
|
||
|
"SLOT", # flake8-slots
|
||
|
"SIM", # flake8-simplify
|
||
|
"TID", # flake8-tidy-imports
|
||
|
"PTH", # flake8-pathlib
|
||
|
"TD", # flake8-todo
|
||
|
"PL", # PyLint
|
||
|
"TRY", # tryceratops
|
||
|
"NPY", # NumPy
|
||
|
"RUF", # Ruff
|
||
|
]
|
||
|
ignore = [
|
||
|
#----- Rules recommended by https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
|
||
|
"W191", # tab-identation
|
||
|
"E111", # indentation-with-invalid-multiple
|
||
|
"E114", # indentation-with-invalid-multiple-comment
|
||
|
"E117", # over-indented
|
||
|
"E501", # line-too-long
|
||
|
"D206", # indent-with-spaces
|
||
|
"D300", # triple-single-quotes
|
||
|
"Q000", # bad-quotes-inline-string
|
||
|
"Q001", # bad-quotes-multiline-string
|
||
|
"Q002", # bad-quotes-docstring
|
||
|
"Q003", # avoidable-escaped-quote
|
||
|
"COM812", # missing-trailing-comma
|
||
|
"COM819", # prohibited-trailing-comma
|
||
|
"ISC001", # single-line-implicit-string-concatenation
|
||
|
"ISC002", # multi-line-implicit-string-concatenation
|
||
|
#-----
|
||
|
"A003", # builtin-attribute-shadowing
|
||
|
"TD002", # missing-todo-author
|
||
|
"TD003", # missing-todo-link
|
||
|
"SIM108", # if-else-block-instead-of-if-exp
|
||
|
"C408", # unnecessary-collection-call
|
||
|
"UP012", # unnecessary-encode-utf8
|
||
|
"RET504", # unnecessary-assign
|
||
|
# PyLint too aggressive about too many args, statements, branches, and
|
||
|
# returns
|
||
|
"PLR0904", # too-many-public-methods
|
||
|
"PLR0911", # too-many-return-statements
|
||
|
"PLR0912", # too-many-branches
|
||
|
"PLR0913", # too-many-arguments
|
||
|
"PLR0915", # too-many-statements
|
||
|
"PLR2004", # magic-value-comparison
|
||
|
]
|