This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import operator | |
class InvalidFilter(Exception): | |
pass | |
class Filter(object): | |
binary_operators = { | |
u"=": operator.eq, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A(object): | |
pass | |
class B(object): | |
__slots__ = ('foobar',) | |
def __init__(self): | |
self.x = 123 | |
class C(A): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conditions: | |
- branch=master | |
- "#approved-reviews-by>=2" | |
actions: | |
merge: | |
method: rebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ccijob | |
{ | |
# Tempfile must be in the repository | |
local tmpfile="$(mktemp .circleci/config.processed.XXXXXX)" | |
circleci config process .circleci/config.yml > "$tmpfile" | |
if [ $? = 0 ] | |
then | |
circleci local execute --config "$tmpfile" --job "$1" | |
fi | |
rm "$tmpfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pull_request_rules: | |
# If a a pull request has this label, try to update it | |
- name: update on label | |
conditions: | |
- label=needs-update | |
actions: | |
update: | |
# If a PR is up-to-date, make sure it does not have the `needs-update` label | |
- name: clear update label |
OlderNewer