-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpipelight.ts
More file actions
35 lines (30 loc) · 618 Bytes
/
Copy pathpipelight.ts
File metadata and controls
35 lines (30 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { Pipeline, Config } from "https://deno.land/x/pipelight/mod.ts";
// Pre-commit:
// 1.) Format
// 2.) Lint
// Then Push
// On Push, publish to PyPI
// Let that carry to conda-forge
const formatAndLint: Pipeline = {
name: "fmt-lint",
steps: [
{
name: "format",
commands: ["ruff format pybashify"],
},
{
name: "lint",
commands: ["ruff check pybashify --fix"]
}
],
triggers: [
{
branches: ["main", "dev"],
actions: ["pre-commit"] //, "pre-push"]
}
]
};
const config: Config = {
pipelines: [formatAndLint],
};
export default config;