diff --git a/.deepsource.toml b/.deepsource.toml index 5971e2d..e3762a4 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -23,7 +23,7 @@ exclude_patterns = [ "codecov_env", "*,cover", ".hypothesis/", - "docs/" + "docs/conf.py" ] [[analyzers]] diff --git a/.github/labeler.yml b/.github/labeler.yml index 687aa86..d5200ca 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,46 +1,53 @@ -# Add 'Multicast' label to any root file changes -Multicast: - - setup.py - - multicast/*.py +# Add 'Python Repo' label to any root file changes +Python Repo: + - changed-files: + - any-glob-to-any-file: 'setup.py' + - any-glob-to-any-file: 'pythonrepo/*.py' # Add 'Lint' label to any lint file changes Linter: - - .stickler.yml - - .hound.yml - - .yamllint.conf - - .flake8.ini - - .deepsource.toml - - tests/check_* + - changed-files: + - any-glob-to-any-file: '.stickler.yml' + - any-glob-to-any-file: '.hound.yml' + - any-glob-to-any-file: '.yamllint.conf' + - any-glob-to-any-file: '.flake8.ini' + - any-glob-to-any-file: '.deepsource.toml' + - any-glob-to-any-file: 'tests/check_*' # Add 'Lang' label to any python file changes Python Lang: - - **/*.py - - *.py + - changed-files: + - any-glob-to-any-file: '**/*.py' + - any-glob-to-any-file: '*.py' Configs: - - *.yml - - ./**/*.yml - - *.ini - - *.toml - - *.cfg - - requirements.txt + - changed-files: + - any-glob-to-any-file: '*.yml' + - any-glob-to-any-file: './**/*.yml' + - any-glob-to-any-file: '*.ini' + - any-glob-to-any-file: '*.toml' + - any-glob-to-any-file: '*.cfg' + - any-glob-to-any-file: 'requirements.txt' # Add 'test' label Testing: - - tests/**/*.py - - tests/* - - .circleci/* + - changed-files: + - any-glob-to-any-file: 'tests/**/*.py' + - any-glob-to-any-file: 'tests/*' + - any-glob-to-any-file: '.circleci/*' CI: - - tests/*.py - - .stickler.yml - - .hound.yml - - .travis.yml - - .appveyor.yml - - .github/workflows/* - - .circleci/* + - changed-files: + - any-glob-to-any-file: 'tests/*.py' + - any-glob-to-any-file: '.stickler.yml' + - any-glob-to-any-file: '.hound.yml' + - any-glob-to-any-file: '.travis.yml' + - any-glob-to-any-file: '.appveyor.yml' + - any-glob-to-any-file: '.github/workflows/*' + - any-glob-to-any-file: '.circleci/*' Github: - - .github/**/* - - .github/* - - README.md + - changed-files: + - any-glob-to-any-file: '.github/**/*' + - any-glob-to-any-file: '.github/*' + - any-glob-to-any-file: 'README.md' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f3c47ce..bf15923 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/scorecards-analysis.yml b/.github/workflows/scorecards.yml similarity index 97% rename from .github/workflows/scorecards-analysis.yml rename to .github/workflows/scorecards.yml index 1d517f9..cdcf1d4 100644 --- a/.github/workflows/scorecards-analysis.yml +++ b/.github/workflows/scorecards.yml @@ -12,7 +12,7 @@ on: schedule: - cron: '18 9 * * 5' push: - branches: [ "master" ] + branches: [ master ] # Declare default permissions as read only. permissions: read-all @@ -27,8 +27,8 @@ jobs: # Needed to publish results and get a badge (see publish_results below). id-token: write # Uncomment the permissions below if installing in a private repository. - # contents: read - # actions: read + contents: read + actions: read steps: - name: "Checkout code" @@ -46,7 +46,6 @@ jobs: # - you are installing Scorecard on a *private* repository # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. repo_token: ${{ secrets.SCORECARD_TOKEN }} - # Public repositories: # - Publish results to OpenSSF REST API for easy access by consumers # - Allows the repository to include the Scorecard badge.