Skip to content

Commit

Permalink
Fix formatting with pre commit (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
trottomv authored Jan 15, 2024
1 parent 069f2c9 commit d561616
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 44 deletions.
3 changes: 1 addition & 2 deletions {{cookiecutter.project_dirname}}/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ pact-verify-webhook:
rules:
- if: $CI_PIPELINE_SOURCE == "trigger" && $PACT_ENABLED == "true"
allow_failure: true
before_script:
*pact-verify-before-script
before_script: *pact-verify-before-script
script:
- docker-compose build
- >
Expand Down
84 changes: 42 additions & 42 deletions {{cookiecutter.project_dirname}}/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
[tool.pytest.ini_options]
DJANGO_CONFIGURATION = "Testing"
DJANGO_SETTINGS_MODULE = "{{ cookiecutter.django_settings_dirname }}.settings"

[tool.coverage.html]
title = "{{cookiecutter.project_name}} - Coverage"

[tool.coverage.report]
fail_under = 100
show_missing = true

[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
data_file = ".coverages/.coverage"
disable_warnings = ["no-data-collected"]
omit = [
".venv/*",
"{{cookiecutter.django_settings_dirname}}/asgi.py",
"{{cookiecutter.django_settings_dirname}}/workers.py",
"{{cookiecutter.django_settings_dirname}}/wsgi.py",
"manage.py",
"pacts/*",
"venv/*",
"*/pact_states.py",
]
source = ["."]

[tool.mypy]
enable_error_code = [
"truthy-bool",
]
ignore_missing_imports = true
python_version = "3.12"

[tool.bandit]
exclude_dirs = [
".venv",
"tests",
"features"
]

[tool.ruff]
target-version = "py312"

Expand Down Expand Up @@ -84,3 +42,45 @@ known-first-party = [
known-third-party = [
"django",
]

[tool.pytest.ini_options]
DJANGO_CONFIGURATION = "Testing"
DJANGO_SETTINGS_MODULE = "{{ cookiecutter.django_settings_dirname }}.settings"

[tool.coverage.html]
title = "{{cookiecutter.project_name}} - Coverage"

[tool.coverage.report]
fail_under = 100
show_missing = true

[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
data_file = ".coverages/.coverage"
disable_warnings = ["no-data-collected"]
omit = [
".venv/*",
"{{cookiecutter.django_settings_dirname}}/asgi.py",
"{{cookiecutter.django_settings_dirname}}/workers.py",
"{{cookiecutter.django_settings_dirname}}/wsgi.py",
"manage.py",
"pacts/*",
"venv/*",
"*/pact_states.py",
]
source = ["."]

[tool.mypy]
enable_error_code = [
"truthy-bool",
]
ignore_missing_imports = true
python_version = "3.12"

[tool.bandit]
exclude_dirs = [
".venv",
"tests",
"features"
]

0 comments on commit d561616

Please sign in to comment.