summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGrimdhex <176165533+Grimdhex@users.noreply.github.com>2024-08-27 11:19:13 +0200
committerGitHub <noreply@github.com>2024-08-27 06:19:13 -0300
commit574ef5203a4cb2c5cfd476323089dd9e9217999a (patch)
tree95266ac551d53a2b540b35413600d7032bc1f823 /.github
parent126f3a31ee3748a3e2a8ac82e48dcef0e48d2d80 (diff)
chore(Apps/CodeStyle): rewrite Ci-codestyle in python (#19714)
* initial version * port most current checks * allow to specify for each checks the exclude files * Update _ci-codestyle.py * fix trailing whitespace check and the error_handler logic * optimize the script to parse all files only one time * restore the error handling after that all checks are passed * fix double blank lines at the end of the file * improve outputs and the codestyle * . * update github workflow to the new script *drop the old ci-codestyle *move and rename the python script * use getcwd instead abspath to define src_directory where the script is launch * test for github workflow * few cleanup * fix the logic with the result output * remove GetTypeId from the output result * restore GetTypeId() check * fix reviews * remove GetTypeId check for gameobjects *not currently fixed in the core * fix type hint for file parameters * remove the test file
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codestyle.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml
index ce72ed58f7..f24a1d2523 100644
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -13,8 +13,12 @@ jobs:
if: github.repository == 'azerothcore/azerothcore-wotlk'
steps:
- uses: actions/checkout@v4
+ - name: Setup python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.10'
- name: AzerothCore codestyle
- run: source ./apps/ci/ci-codestyle.sh
+ run: python ./apps/codestyle/codestyle.py
- name: C++ Advanced
run: |
sudo apt update -y