Skip to content

Instantly share code, notes, and snippets.

@ChihChengLiang
Last active January 30, 2019 06:23
Show Gist options
  • Save ChihChengLiang/98b570feeb04608faec2a80fa983827f to your computer and use it in GitHub Desktop.
Save ChihChengLiang/98b570feeb04608faec2a80fa983827f to your computer and use it in GitHub Desktop.
{
"version": "2.0.0",
"tasks": [
{
"label": "Lint",
"command": "flake8",
"args": [
"./ssz",
"./tests",
"./scripts",
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "python",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(W|E)(\\d+)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"loop":true,
}
},
},
{
"label": "Sort Import",
"command": "isort",
"args": [
"--recursive",
"--apply",
"./ssz",
"./tests",
"./scripts",
],
"group": {
"kind": "build",
"isDefault": true,
},
},
{
"label": "pytest",
"command": "pytest",
"args": [
"tests/core/"
],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"Sort Import",
"Lint"
]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Lint",
"command": "flake8",
"args": [
"./tests",
"./eth2",
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "python",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(W|E)(\\d+)\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 6,
"loop": true,
}
},
},
{
"label": "Type Hint",
"command": "mypy",
"args": [
"--follow-imports=silent",
"--warn-unused-ignores",
"--ignore-missing-imports",
"--no-strict-optional",
"--check-untyped-defs",
"--disallow-incomplete-defs",
"--disallow-untyped-defs",
"--disallow-any-generics",
"-p",
"p2p",
"-p",
"trinity",
"-p",
"eth2",
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "python",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):\\s(warning|error):\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 6,
"loop": true,
}
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment