Skip to content

Commit

Permalink
chore: Add toml formatting to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Apr 19, 2023
1 parent 615ffb1 commit 0f2521c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version = 1

test_patterns = ["**/test_*.py"]
version = 1

[[analyzers]]
name = "python"
enabled = true
name = "python"

[analyzers.meta]
runtime_version = "3.x.x"
[analyzers.meta]
runtime_version = "3.x.x"
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ repos:
- id: check-yaml
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: requirements-txt-fixer
- id: fix-encoding-pragma
args: [--remove]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.8.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
21 changes: 16 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"setuptools_scm>=6.2"
"setuptools>=42",
"setuptools_scm>=6.2"
]
build-backend = "setuptools.build_meta"

[tool.isort]
known_third_party = [
"iniparse",
"lxml",
"vobject",
"sphinx",
"pytest",
"cheroot",
"phply",
"bs4",
"ruamel",
"pyparsing",
"setuptools"
]
profile = "black"
known_third_party=[
"iniparse","lxml","vobject","sphinx","pytest","cheroot","phply","bs4","ruamel","pyparsing","setuptools"]

0 comments on commit 0f2521c

Please sign in to comment.