Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b42d6d02 authored by Dorian Turba's avatar Dorian Turba
Browse files

add toml-sort pre-commit and tool

parent 8d8db1ec
No related branches found
No related tags found
No related merge requests found
Pipeline #25277 passed
repos:
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.13.3
hooks:
- id: pymarkdown
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.13.3
hooks:
- id: pymarkdown
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort
args: [ --check ]
......@@ -27,3 +27,10 @@ pre-commit run --all-files
This will run the following hooks:
- `pymarkdown`
- `toml-sort`
#### Sort Toml files
```bash
toml-sort --in-place pyproject.toml
```
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
requires = ["hatchling"]
[project]
name = "r2devops_catalog"
version = "0.1.0"
authors = [
{ name = "Dorian Turba", email = "author.name@example.com" },
{email = "contact.7ltt4@8shield.net", name = "Dorian Turba"},
]
description = "A description of what the package is for."
description = "Catalog of r2devops projects"
dependencies = [
"black_project @ {root:uri}/tests/black_project",
"flake8_project @ {root:uri}/tests/flake8_project",
"isort_project @ {root:uri}/tests/isort_project",
"pytest_project @ {root:uri}/tests/pytest_project",
"mypy_project @ {root:uri}/tests/mypy_project",
"pytest_project @ {root:uri}/tests/pytest_project",
]
[project.optional-dependencies]
......@@ -25,16 +22,29 @@ QUALITY = [
"black",
"mypy",
"pre-commit",
"toml-sort",
]
[tool.pymarkdown]
strict-config = true
plugins.line-length.enabled = false
[tool.hatch.metadata]
allow-direct-references = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"packaging",
"packaging.requirements",
"packaging.specifiers",
"packaging",
]
ignore_missing_imports = true
\ No newline at end of file
[tool.pymarkdown]
strict-config = true
plugins.line-length.enabled = false
[tool.tomlsort]
all = true
in_place = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
[tool.tomlsort.overrides."project"]
table_keys = false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment