File tree 3 files changed +35
-30
lines changed
3 files changed +35
-30
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
python-version : 3.9
24
24
- name : Check formatting with Ruff
25
- run : bazel run :format.check
25
+ run : bazel run //quality :format.check
26
26
- name : Run Licence Checker
27
- run : bazel run //:licence-check
27
+ run : bazel run //quality :licence-check
28
28
- name : Test Licence Checker
29
29
run : |
30
30
cd tests
Original file line number Diff line number Diff line change 1
1
# Copyright lowRISC contributors.
2
2
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
3
# SPDX-License-Identifier: Apache-2.0
4
-
5
- load ("//rules:rules.bzl" , "licence_check" )
6
- load ("@aspect_rules_lint//format:defs.bzl" , "format_multirun" )
7
-
8
- licence_check (
9
- name = "licence-check" ,
10
- exclude_patterns = [".style.yapf" ],
11
- licence = """
12
- Copyright lowRISC contributors.
13
- Licensed under the Apache License, Version 2.0, see LICENSE for details.
14
- SPDX-License-Identifier: Apache-2.0
15
- """ ,
16
- )
17
-
18
- alias (
19
- name = "ruff" ,
20
- actual = select ({
21
- "@bazel_tools//src/conditions:linux_x86_64" : "@ruff_x86_64-unknown-linux-gnu//:ruff" ,
22
- "@bazel_tools//src/conditions:linux_aarch64" : "@ruff_aarch64-unknown-linux-gnu//:ruff" ,
23
- "@bazel_tools//src/conditions:darwin_arm64" : "@ruff_aarch64-apple-darwin//:ruff" ,
24
- "@bazel_tools//src/conditions:darwin_x86_64" : "@ruff_x86_64-apple-darwin//:ruff" ,
25
- }),
26
- )
27
-
28
- format_multirun (
29
- name = "format" ,
30
- python = ":ruff" ,
31
- )
Original file line number Diff line number Diff line change
1
+ # Copyright lowRISC contributors.
2
+ # Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ load ("//rules:rules.bzl" , "licence_check" )
6
+ load ("@aspect_rules_lint//format:defs.bzl" , "format_multirun" )
7
+
8
+ package (default_visibility = ["//visibility:private" ])
9
+
10
+ licence_check (
11
+ name = "licence-check" ,
12
+ exclude_patterns = [".style.yapf" ],
13
+ licence = """
14
+ Copyright lowRISC contributors.
15
+ Licensed under the Apache License, Version 2.0, see LICENSE for details.
16
+ SPDX-License-Identifier: Apache-2.0
17
+ """ ,
18
+ )
19
+
20
+ alias (
21
+ name = "ruff" ,
22
+ actual = select ({
23
+ "@bazel_tools//src/conditions:linux_x86_64" : "@ruff_x86_64-unknown-linux-gnu//:ruff" ,
24
+ "@bazel_tools//src/conditions:linux_aarch64" : "@ruff_aarch64-unknown-linux-gnu//:ruff" ,
25
+ "@bazel_tools//src/conditions:darwin_arm64" : "@ruff_aarch64-apple-darwin//:ruff" ,
26
+ "@bazel_tools//src/conditions:darwin_x86_64" : "@ruff_x86_64-apple-darwin//:ruff" ,
27
+ }),
28
+ )
29
+
30
+ format_multirun (
31
+ name = "format" ,
32
+ python = ":ruff" ,
33
+ )
You can’t perform that action at this time.
0 commit comments