Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ repos:
hooks:
- id: flake8
name: Python Format
files: ^(python|crossbow|integration)/
files: ^(python|dev|integration)/
types:
- file
- python
Expand Down
10 changes: 9 additions & 1 deletion dev/tasks/crossbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,14 @@ class Task(Serializable):
"""

def __init__(self, ci, template, artifacts=None, params=None):
assert ci in {'circle', 'travis', 'appveyor', 'azure', 'github'}
assert ci in {
'circle',
'travis',
'appveyor',
'azure',
'github',
'drone'
}
self.ci = ci
self.template = template
self.artifacts = artifacts or []
Expand Down Expand Up @@ -733,6 +740,7 @@ def filename(self):
'appveyor': 'appveyor.yml',
'azure': 'azure-pipelines.yml',
'github': '.github/workflows/crossbow.yml',
'drone': '.drone.yml',
}
return config_files[self.ci]

Expand Down