diff --git a/.github/labels.yml b/.github/labels.yml new file mode 100644 index 0000000..ff8ca8d --- /dev/null +++ b/.github/labels.yml @@ -0,0 +1,78 @@ +--- +- name: "breaking-change" + color: ee0701 + description: "A breaking change for existing users." +- name: "bugfix" + color: ee0701 + description: "Inconsistencies or issues which will cause a problem for users or implementors." +- name: "documentation" + color: 0052cc + description: "Solely about the documentation of the project." +- name: "enhancement" + color: 1d76db + description: "Enhancement of the code, not introducing new features." +- name: "refactor" + color: 1d76db + description: "Improvement of existing code, not introducing new features." +- name: "performance" + color: 1d76db + description: "Improving performance, not introducing new features." +- name: "new-feature" + color: 0e8a16 + description: "New features or options." +- name: "maintenance" + color: 2af79e + description: "Generic maintenance tasks." +- name: "ci" + color: 1d76db + description: "Work that improves the continue integration." +- name: "dependencies" + color: 1d76db + description: "Upgrade or downgrade of project dependencies." + +- name: "in-progress" + color: fbca04 + description: "Issue is currently being resolved by a developer." +- name: "stale" + color: fef2c0 + description: "There has not been activity on this issue or PR for quite some time." +- name: "no-stale" + color: fef2c0 + description: "This issue or PR is exempted from the stable bot." + +- name: "security" + color: ee0701 + description: "Marks a security issue that needs to be resolved asap." +- name: "incomplete" + color: fef2c0 + description: "Marks a PR or issue that is missing information." +- name: "invalid" + color: fef2c0 + description: "Marks a PR or issue that is missing information." + +- name: "beginner-friendly" + color: 0e8a16 + description: "Good first issue for people wanting to contribute to the project." +- name: "help-wanted" + color: 0e8a16 + description: "We need some extra helping hands or expertise in order to resolve this." + +- name: "priority-critical" + color: ee0701 + description: "This should be dealt with ASAP. Not fixing this issue would be a serious error." +- name: "priority-high" + color: b60205 + description: "After critical issues are fixed, these should be dealt with before any further issues." +- name: "priority-medium" + color: 0e8a16 + description: "This issue may be useful, and needs some attention." +- name: "priority-low" + color: e4ea8a + description: "Nice addition, maybe... someday..." + +- name: "major" + color: b60205 + description: "This PR causes a major version bump in the version number." +- name: "minor" + color: 0e8a16 + description: "This PR causes a minor version bump in the version number." diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 9f6c9ef..9cbb531 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -4,7 +4,7 @@ name: Functional Tests on: push: branches: - - 'main' + - "main" pull_request: jobs: @@ -16,36 +16,36 @@ jobs: fail-fast: false matrix: include: - - provider: 'deepl' - lang: 'en-uk' - source: 'Love' - expected: 'Любов' - api_key: 'DEEPL_API_KEY' # pragma: allowlist secret - - provider: 'google' - lang: 'en-hr' - source: 'Love' - expected: 'Ljubav' - api_key: 'N_A' # pragma: allowlist secret - - provider: 'linguatools' - lang: 'en-de' - source: 'Love' - expected: 'Love' - api_key: 'N_A' # pragma: allowlist secret - - provider: 'mymemory' - lang: 'en|it' - source: 'Love' - expected: 'Ama.' - api_key: 'N_A' # pragma: allowlist secret - - provider: 'mymemory' - lang: 'en|pt' - source: 'Love' - expected: 'Amor' - api_key: 'MYMEMORY_API_KEY' # pragma: allowlist secret - - provider: 'funtranslations' - lang: 'klingon' - source: 'Love' - expected: 'Parmaq' - api_key: 'N_A' # pragma: allowlist secret + - provider: "deepl" + lang: "en-uk" + source: "Love" + expected: "Любов" + api_key: "DEEPL_API_KEY" # pragma: allowlist secret + - provider: "google" + lang: "en-hr" + source: "Love" + expected: "Ljubav" + api_key: "N_A" # pragma: allowlist secret + - provider: "linguatools" + lang: "en-de" + source: "Love" + expected: "Love" + api_key: "N_A" # pragma: allowlist secret + - provider: "mymemory" + lang: "en|it" + source: "Love" + expected: "L'amore" + api_key: "N_A" # pragma: allowlist secret + - provider: "mymemory" + lang: "en|pt" + source: "Love" + expected: "Amor" + api_key: "MYMEMORY_API_KEY" # pragma: allowlist secret + - provider: "funtranslations" + lang: "klingon" + source: "Love" + expected: "Parmaq" + api_key: "N_A" # pragma: allowlist secret steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..2c23565 --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,21 @@ +--- +name: Sync labels + +on: # yamllint disable-line rule:truthy + push: + branches: + - main + paths: + - .github/labels.yml + workflow_dispatch: + +jobs: + sync-labels: + name: Sync labels + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Label Syncer + uses: micnncim/action-label-syncer@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56b21f6..0f48fe3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: hooks: - id: detect-secrets - repo: https://github.com/gitleaks/gitleaks - rev: v8.17.0 + rev: v8.18.0 hooks: - id: gitleaks - repo: https://github.com/fabasoad/pre-commit-snyk @@ -50,7 +50,7 @@ repos: stages: ["push"] # Markdown - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.35.0 + rev: v0.37.0 hooks: - id: markdownlint-fix stages: ["commit"] @@ -62,7 +62,7 @@ repos: stages: ["push"] # GitHub Actions - repo: https://github.com/rhysd/actionlint - rev: v1.6.25 + rev: v1.6.26 hooks: - id: actionlint args: ["-pyflakes="]