diff --git a/.codecov.yml b/.codecov.yml index 341e4255..94667d94 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,3 +1,4 @@ +--- codecov: branch: master @@ -5,7 +6,7 @@ coverage: range: "95..100" status: - project: no + project: false flags: library: diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 7d50a474..913b2459 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,7 @@ +--- # These are supported funding model platforms +# yamllint disable rule:comments rule:line-length github: [thehesiod, terrycain] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username @@ -10,3 +12,4 @@ liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] +# yamllint enable rule:comments rule:line-length diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a5c0e272..6f7084c7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: @@ -5,12 +6,12 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "daily" +- package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 34d4a6fa..28bfaa62 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,3 +1,4 @@ +--- name: "Pre-commit" on: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5149e3ed..f59565d1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,4 +1,6 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +--- +# This workflow warns and then closes issues and PRs that have had no activity +# for a specified amount of time. # # You can adjust the behavior by modifying this file. # For more information, see: @@ -7,7 +9,7 @@ name: Mark stale issues and pull requests on: schedule: - - cron: '31 21 * * *' + - cron: '31 21 * * *' workflow_dispatch: jobs: @@ -19,8 +21,14 @@ jobs: pull-requests: write steps: - - uses: actions/stale@v5 - with: - stale-issue-message: 'This issue has been marked as stale because it has been inactive for more than 60 days. Please update this pull request or it will be automatically closed in 7 days.' - stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 60 days. Please update this pull request or it will be automatically closed in 7 days.' - operations-per-run: '60' + - uses: actions/stale@v5 + with: + stale-issue-message: >- + This issue has been marked as stale because it has been inactive for + more than 60 days. Please update this pull request or it will be + automatically closed in 7 days. + stale-pr-message: >- + This pull request has been marked as stale because it has been + inactive for more than 60 days. Please update this pull request or + it will be automatically closed in 7 days. + operations-per-run: '60' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c29c54bc..1a0d06a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,23 @@ +--- repos: - - repo: 'https://github.com/pre-commit/pre-commit-hooks' - rev: v4.5.0 - hooks: - - id: check-yaml - - id: end-of-file-fixer - - id: trailing-whitespace - - repo: 'https://github.com/PyCQA/isort' - rev: 5.12.0 - hooks: - - id: isort - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.8 - hooks: - - id: ruff - args: [ --fix ] - - id: ruff-format +- repo: 'https://github.com/pre-commit/pre-commit-hooks' + rev: v4.5.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: 'https://github.com/PyCQA/isort' + rev: 5.12.0 + hooks: + - id: isort +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.8 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format +- repo: https://github.com/adrienverge/yamllint.git + rev: v1.35.1 + hooks: + - id: yamllint + args: [--strict] diff --git a/.readthedocs.yml b/.readthedocs.yml index afe7ba03..4ae9395e 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,3 +1,4 @@ +--- version: 2 build: @@ -10,9 +11,9 @@ sphinx: python: install: - - path: . - - requirements: docs/requirements.txt + - path: . + - requirements: docs/requirements.txt formats: - - htmlzip - - epub +- htmlzip +- epub diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..338ef310 --- /dev/null +++ b/.yamllint @@ -0,0 +1,15 @@ +--- +extends: default + +rules: + indentation: + level: error + indent-sequences: false + truthy: + allowed-values: + - >- + false + - >- + true + - >- # Allow "on" key name in GHA CI/CD workflow definitions + on