chore: add pre-commit and pyproject configs
This commit is contained in:
parent
2cfa5cecd7
commit
1d0ef191c6
2 changed files with 66 additions and 0 deletions
51
pyproject.toml
Normal file
51
pyproject.toml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[project]
|
||||
# This section contains metadata about your project.
|
||||
# Don't forget to change the name, description, and authors to match your project!
|
||||
name = "itpspapi"
|
||||
description = "Server for ilo toki pi sitelen pona"
|
||||
authors = [
|
||||
{ name = "jan Kalote" }
|
||||
]
|
||||
version = "0.1.0"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"django~=6.0"
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pre-commit~=4.2.0",
|
||||
"ruff~=0.12.2",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 119
|
||||
target-version = "py312"
|
||||
fix = true
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["ALL"]
|
||||
ignore = [
|
||||
# Missing docstrings.
|
||||
"D100",
|
||||
"D104",
|
||||
"D105",
|
||||
"D106",
|
||||
"D107",
|
||||
# Docstring whitespace.
|
||||
"D203",
|
||||
"D213",
|
||||
# Docstring punctuation.
|
||||
"D415",
|
||||
# Docstring quotes.
|
||||
"D301",
|
||||
# Builtins.
|
||||
"A",
|
||||
# Print statements.
|
||||
"T20",
|
||||
# TODOs.
|
||||
"TD002",
|
||||
"TD003",
|
||||
"FIX",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue