File tree Expand file tree Collapse file tree 10 files changed +169
-241
lines changed Expand file tree Collapse file tree 10 files changed +169
-241
lines changed Original file line number Diff line number Diff line change 46
46
47
47
- name : Run mypy
48
48
run : |
49
- uv run make lint-win32
49
+ uv run just win32- lint-mypy
Original file line number Diff line number Diff line change @@ -44,18 +44,18 @@ jobs:
44
44
run : |
45
45
uv sync --all-extras --dev
46
46
47
- - name : Run ruff
47
+ - name : Run reuse lint
48
48
run : |
49
- uv run ruff check src tests
49
+ uv run just lint-reuse
50
50
51
- - name : Run mypy
51
+ - name : Run ruff format
52
52
run : |
53
- uv run mypy src tests
53
+ uv run just lint-ruff-format
54
54
55
- - name : Run ruff format
55
+ - name : Run ruff check
56
56
run : |
57
- uv run ruff format - -check src tests
57
+ uv run just lint-ruff -check
58
58
59
- - name : Run reuse lint
59
+ - name : Run mypy
60
60
run : |
61
- uv run reuse lint
61
+ uv run just lint-mypy
Original file line number Diff line number Diff line change 44
44
45
45
- name : Run pytest
46
46
run : |
47
- uv run make pytest
47
+ uv run just run-test- pytest
48
48
49
49
bats :
50
50
strategy :
78
78
79
79
- name : Run bats
80
80
run : |
81
- uv run make bats
81
+ uv run just run-test- bats
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ Several linters and unit tests are used to catch programming errors and regressi
18
18
The relevant tools and their versions are specified in the ` pyproject.toml ` .
19
19
[ Github Actions] ( https://docs.github.com/en/actions ) are configured to run against all merge requests.
20
20
21
- To run these checks locally, use ` make lint ` and ` make test ` .
22
-
23
21
## Commit Messages
24
22
25
23
We use [ Conventional Commits] ( https://www.conventionalcommits.org/en/v1.0.0/ ) for structured commit messages.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: AISEC Pentesting Team
2
+ #
3
+ # SPDX-License-Identifier: CC0-1.0
4
+
5
+ default :
6
+ @ just --list
7
+
8
+ [private ]
9
+ lint-mypy :
10
+ mypy --pretty src tests
11
+
12
+ [private ]
13
+ lint-ruff-check :
14
+ ruff check
15
+
16
+ [private ]
17
+ lint-ruff-format :
18
+ ruff format --check
19
+
20
+ [private ]
21
+ lint-shellcheck :
22
+ find tests/ bats \( -iname " *.bash" -or -iname " *.bats" -or -iname " *.sh" \) | xargs shellcheck
23
+
24
+ [private ]
25
+ lint-reuse :
26
+ reuse lint
27
+
28
+ lint : lint-mypy lint-ruff-check lint-ruff-format lint-ruff-format lint-shellcheck lint-reuse
29
+
30
+ win32-lint-mypy :
31
+ mypy --platform win32 --exclude " gallia\/ log\. py" --exclude " hr" src tests
32
+
33
+ fmt :
34
+ ruff check --fix-only
35
+ ruff format
36
+ find tests/ bats \( -iname " *.bash" -or -iname " *.bats" -or -iname " *.sh" \) | xargs shfmt -w
37
+
38
+ run-tests : run-test-pytest run-test-bats
39
+
40
+ run-test-pytest :
41
+ python -m pytest -v --cov={{ justfile_directory ()}} --cov-report html tests/ pytest
42
+
43
+ run-test-bats :
44
+ ./ tests/ bats/ run_bats.sh
45
+
46
+ gen-constants : && fmt
47
+ ./ scripts/ gen_constants.py > src/ gallia/ transports/ _can_constants.py
48
+
49
+ release increment :
50
+ cz bump --increment {{ increment}}
51
+ git push --follow-tags
52
+ gh release create " v$(cz version -p)"
53
+
54
+ make-docs :
55
+ make -C docs html
56
+
57
+ clean :
58
+ make -C docs clean
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ dependencies = [
52
52
[project .optional-dependencies ]
53
53
dev = [
54
54
" Sphinx >=8.0" ,
55
+ " commitizen>=4.1.0" ,
55
56
" construct-typing >=0.5.2,<0.7.0" ,
56
57
" mypy >=1.0,<2.0" ,
57
58
" myst-parser >=3.0.1,<4.1" ,
@@ -63,6 +64,7 @@ dev = [
63
64
" python-lsp-server >=1.5,<2.0" ,
64
65
" reuse >=4.0,<5.0" ,
65
66
" ruff >=0.8.0" ,
67
+ " rust-just>=1.38.0" ,
66
68
" sphinx-rtd-theme >=3" ,
67
69
" types-tabulate >=0.9,<0.10" ,
68
70
]
Original file line number Diff line number Diff line change 6
6
7
7
import socket
8
8
9
-
10
9
TEMPLATE = f"""# This file has been autogenerated by `make constants`.
11
10
# !! DO NOT CHANGE MANUALLY !!
12
11
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments