Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: yaml hierarchy indicates 2 spaces instead of 4 #116

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions dependabot_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def make_dependabot_config(ecosystem, group_dependencies) -> str:
dependabot_config = f""" - package-ecosystem: '{ecosystem}'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
if group_dependencies:
dependabot_config += """ groups:
production-dependencies:
dependency-type: 'production'
development-dependencies:
dependency-type: 'development'
production-dependencies:
dependency-type: 'production'
development-dependencies:
dependency-type: 'development'
"""
return dependabot_config

Expand Down
28 changes: 14 additions & 14 deletions test_dependabot_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_build_dependabot_file_with_bundler(self):
- package-ecosystem: 'bundler'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -53,7 +53,7 @@ def test_build_dependabot_file_with_npm(self):
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -77,7 +77,7 @@ def test_build_dependabot_file_with_pip(self):
- package-ecosystem: 'pip'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -98,7 +98,7 @@ def test_build_dependabot_file_with_cargo(self):
- package-ecosystem: 'cargo'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -114,7 +114,7 @@ def test_build_dependabot_file_with_gomod(self):
- package-ecosystem: 'gomod'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -135,7 +135,7 @@ def test_build_dependabot_file_with_composer(self):
- package-ecosystem: 'composer'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -156,7 +156,7 @@ def test_build_dependabot_file_with_hex(self):
- package-ecosystem: 'mix'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -172,7 +172,7 @@ def test_build_dependabot_file_with_nuget(self):
- package-ecosystem: 'nuget'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -188,7 +188,7 @@ def test_build_dependabot_file_with_docker(self):
- package-ecosystem: 'docker'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
"""
result = build_dependabot_file(repo, False, [])
self.assertEqual(result, expected_result)
Expand All @@ -204,12 +204,12 @@ def test_build_dependabot_file_with_groups(self):
- package-ecosystem: 'docker'
directory: '/'
schedule:
interval: 'weekly'
interval: 'weekly'
groups:
production-dependencies:
dependency-type: 'production'
development-dependencies:
dependency-type: 'development'
production-dependencies:
dependency-type: 'production'
development-dependencies:
dependency-type: 'development'
"""
result = build_dependabot_file(repo, True, [])
self.assertEqual(result, expected_result)
Expand Down
Loading