diff --git a/.codespellrc b/.github/codespellrc similarity index 100% rename from .codespellrc rename to .github/codespellrc diff --git a/.pre-commit-config.yaml b/.github/pre-commit-config.yaml similarity index 96% rename from .pre-commit-config.yaml rename to .github/pre-commit-config.yaml index 44126df3b..b57224485 100644 --- a/.pre-commit-config.yaml +++ b/.github/pre-commit-config.yaml @@ -3,6 +3,7 @@ repos: hooks: - id: codespell name: "python: codespell" + args: [--config=.github/codespellrc] entry: codespell language: system pass_filenames: false diff --git a/requirements.txt b/.github/requirements.txt similarity index 100% rename from requirements.txt rename to .github/requirements.txt diff --git a/.github/workflows/_static-analysis.yml b/.github/workflows/_static-analysis.yml index da431ad09..356ffde26 100644 --- a/.github/workflows/_static-analysis.yml +++ b/.github/workflows/_static-analysis.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v4 - name: Check version is up to date run: | - make version + make -f scripts/Makefile version if [ -z "$(git status --porcelain)" ]; then # Working directory clean echo "Version manifests up to date" @@ -40,23 +40,23 @@ jobs: name: Restore Python Cache with: path: ~/.cache/pip - key: ubuntu-22.04-${{ runner.arch }}-pip-${{ hashFiles('requirements.txt') }} + key: ubuntu-22.04-${{ runner.arch }}-pip-${{ hashFiles('.github/requirements.txt') }} restore-keys: | ubuntu-22.04-${{ runner.arch }}-pip- - name: Install Python Dependencies run: | - pip install -r requirements.txt + pip install -r .github/requirements.txt - name: Install dependencies run: | sudo apt-get update sudo apt-get install -y shfmt - name: Run pre-commit run: | - pre-commit install - SKIP=no-commit-to-branch pre-commit run --all-files + pre-commit install --config .github/pre-commit-config.yaml + SKIP=no-commit-to-branch pre-commit run --all-files --config .github/pre-commit-config.yaml - uses: actions/cache/save@v4 if: ${{ github.ref == 'refs/heads/main' }} name: Save Python Cache with: path: ~/.cache/pip - key: ubuntu-22.04-${{ runner.arch }}-pip-${{ hashFiles('requirements.txt') }} + key: ubuntu-22.04-${{ runner.arch }}-pip-${{ hashFiles('.github/requirements.txt') }} diff --git a/.yamllint b/.yamllint deleted file mode 100644 index d70a98a7a..000000000 --- a/.yamllint +++ /dev/null @@ -1,4 +0,0 @@ -extends: default - -rules: - line-length: disable diff --git a/Makefile b/scripts/Makefile similarity index 100% rename from Makefile rename to scripts/Makefile