File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 34
34
- name : Check formatting
35
35
run : |
36
36
hatch run tool:format
37
+ - name : Check licensing
38
+ run : |
39
+ hatch run tool:license_check
37
40
# - name: SonarCloud Scan
38
41
# uses: SonarSource/sonarcloud-github-action@master
39
42
# env:
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ dependencies = [
64
64
]
65
65
66
66
[tool .hatch .envs .tool .scripts ]
67
- license = ' python -m licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2023 -n "Sonar Scanner Python" -E .py'
67
+ license_script = ' python -m licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2023 -n "Sonar Scanner Python" -E .py'
68
+ license = [" license_script -d ./src" , " license_script -d ./tests" ]
69
+ license_check = [" license" , " git diff --name-only --exit-code ./src ./tests" ]
68
70
format = ' python -m black src/ tests/ --check'
69
71
apply_format = ' python -m black src/ tests/'
70
72
type_check = " python -m mypy src/ tests/ --ignore-missing-imports"
You can’t perform that action at this time.
0 commit comments