summaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-10-21 11:56:07 -0300
committerRoger Gonzalez <roger@rogs.me>2023-10-21 11:56:07 -0300
commit7081ed74c2012821510b2659fdda3e7069b13ea3 (patch)
tree7523bb09abf6172ede4e7c484d58625ecb667b19 /pyproject.toml
Initial commit
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml53
1 files changed, 53 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..09e6750
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,53 @@
+[tool.black]
+line-length = 121
+target-version = ['py310']
+include = '\.py$'
+exclude = '''
+/(
+ \.bzr
+ | \.direnv
+ | \.eggs
+ | \.git
+ | \.hg
+ | \.mypy_cache
+ | \.nox
+ | \.pants\.d
+ | \.svn
+ | \.tox
+ | \.venv
+ | _build
+ | buck-out
+ | build
+ | dist
+ | node_modules
+ | venv
+ | \.idea
+ | dockerdata
+ | static
+ | \.git
+ | migrations
+)/
+'''
+
+[tool.isort]
+# these are black-compatible settings
+multi_line_output = 3
+include_trailing_comma = true
+force_grid_wrap = 0
+use_parentheses = true
+ensure_newline_before_comments = true
+line_length = 121
+skip = "dockerdata,.idea,static"
+filter_files = true
+
+[tool.mypy]
+plugins = ["mypy_django_plugin.main"]
+ignore_missing_imports = true
+strict = true
+
+[tool.django-stubs]
+django_settings_module = "app.settings"
+
+[tool.pytest.ini_options]
+python_files = ["tests.py", "test_*.py", "*_tests.py"]
+addopts = "--ds=app.settings --reuse-db --diff-width=121 -n 6 --dist=loadscope --durations=5 --disable-warnings --cov=."