Skip to content

Commit

Permalink
Merge pull request #116 from github/alignment-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zkoppert authored Apr 27, 2024
2 parents 47877e2 + ac55c07 commit 081b683
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
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

0 comments on commit 081b683

Please sign in to comment.