| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | blank_issues_enabled: true | |
| 2 | + | ||
| 2 | 3 | contact_links: | |
| 3 | 4 | - name: Discord Python Polska | |
| 4 | 5 | url: https://discord.com/invite/VCyBDGH38e | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | name: Błąd w tłumaczeniu | |
| 2 | 2 | description: Zgłoś błąd w tłumaczeniu | |
| 3 | - labels: ["bug"] | ||
| 3 | + labels: [bug] | ||
| 4 | + | ||
| 4 | 5 | body: | |
| 5 | 6 | - type: markdown | |
| 6 | 7 | attributes: | |
@@ -16,22 +17,15 @@ body: | |||
| 16 | 17 | Więcej informacji znajdziesz w naszym [README](https://github.com/python/python-docs-pl/blob/3.15/README.md). | |
| 17 | 18 | - type: textarea | |
| 18 | 19 | attributes: | |
| 19 | - label: "Opis błędu:" | ||
| 20 | + label: 'Opis błędu:' | ||
| 20 | 21 | description: > | |
| 21 | 22 | Opisz szczegółowo błąd i jego lokalizację. | |
| 22 | 23 | validations: | |
| 23 | 24 | required: true | |
| 24 | 25 | - type: dropdown | |
| 25 | 26 | attributes: | |
| 26 | - label: "Wersja dokumentacji:" | ||
| 27 | + label: 'Wersja dokumentacji:' | ||
| 27 | 28 | multiple: true | |
| 28 | - options: | ||
| 29 | - - "3.10" | ||
| 30 | - - "3.11" | ||
| 31 | - - "3.12" | ||
| 32 | - - "3.13" | ||
| 33 | - - "3.14" | ||
| 34 | - - "3.15" | ||
| 35 | - - "3.16" | ||
| 29 | + options: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15', '3.16'] | ||
| 36 | 30 | validations: | |
| 37 | 31 | required: false | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,12 @@ | |||
| 1 | 1 | version: 2 | |
| 2 | + | ||
| 2 | 3 | updates: | |
| 3 | - - package-ecosystem: "github-actions" | ||
| 4 | - directory: "/" | ||
| 4 | + - package-ecosystem: github-actions | ||
| 5 | + directory: / | ||
| 5 | 6 | schedule: | |
| 6 | 7 | interval: monthly | |
| 7 | 8 | groups: | |
| 8 | 9 | actions: | |
| 9 | - patterns: | ||
| 10 | - - "*" | ||
| 10 | + patterns: ['*'] | ||
| 11 | 11 | cooldown: | |
| 12 | 12 | default-days: 7 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,18 +1,22 @@ | |||
| 1 | 1 | name: pre-commit | |
| 2 | + | ||
| 2 | 3 | on: | |
| 3 | 4 | schedule: | |
| 4 | - - cron: '0 0 * * 1,5' | ||
| 5 | + - cron: 0 0 * * 1,5 | ||
| 6 | + | ||
| 5 | 7 | env: | |
| 6 | 8 | FORCE_COLOR: 1 | |
| 9 | + | ||
| 7 | 10 | permissions: {} | |
| 11 | + | ||
| 8 | 12 | jobs: | |
| 9 | 13 | lint: | |
| 10 | 14 | runs-on: ubuntu-latest | |
| 11 | 15 | steps: | |
| 12 | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 16 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 13 | 17 | with: | |
| 14 | 18 | persist-credentials: false | |
| 15 | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 19 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 16 | 20 | with: | |
| 17 | - python-version: "3.x" | ||
| 18 | - - uses: tox-dev/action-pre-commit-uv@41a04ab74d5ec7ca33c8db8a59b6e3291d576033 # v1.0.4 | ||
| 21 | + python-version: 3.x | ||
| 22 | + - uses: tox-dev/action-pre-commit-uv@41a04ab74d5ec7ca33c8db8a59b6e3291d576033 # v1.0.4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,10 +2,9 @@ name: Translation and Linting Workflow | |||
| 2 | 2 | ||
| 3 | 3 | on: | |
| 4 | 4 | schedule: | |
| 5 | - - cron: '0 * * * *' | ||
| 5 | + - cron: 0 * * * * | ||
| 6 | 6 | push: | |
| 7 | - branches: | ||
| 8 | - - '*' | ||
| 7 | + branches: ['*'] | ||
| 9 | 8 | workflow_dispatch: | |
| 10 | 9 | ||
| 11 | 10 | permissions: {} | |
@@ -20,10 +19,10 @@ jobs: | |||
| 20 | 19 | permissions: | |
| 21 | 20 | contents: write # commit and push | |
| 22 | 21 | steps: | |
| 23 | - - uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1 | ||
| 22 | + - uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1 | ||
| 24 | 23 | with: | |
| 25 | 24 | access_token: ${{ secrets.GITHUB_TOKEN }} | |
| 26 | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 25 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 27 | 26 | with: | |
| 28 | 27 | python-version: 3 | |
| 29 | 28 | - name: Install dependencies | |
@@ -32,7 +31,7 @@ jobs: | |||
| 32 | 31 | pip install requests cogapp polib transifex-python sphinx-intl blurb six | |
| 33 | 32 | curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash | |
| 34 | 33 | working-directory: /usr/local/bin | |
| 35 | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 34 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 36 | 35 | with: | |
| 37 | 36 | ref: ${{ matrix.version }} | |
| 38 | 37 | fetch-depth: 0 | |
@@ -50,7 +49,7 @@ jobs: | |||
| 50 | 49 | if: ${{ hashFiles('README.md') != '' }} | |
| 51 | 50 | env: | |
| 52 | 51 | TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
| 53 | - - name: Update README.en.md | ||
| 52 | + - name: Update README.en.md | ||
| 54 | 53 | run: python -Werror -m cogapp -rP README.en.md | |
| 55 | 54 | if: ${{ hashFiles('README.en.md') != '' }} | |
| 56 | 55 | env: | |
@@ -59,12 +58,14 @@ jobs: | |||
| 59 | 58 | - run: git config --local user.name "GitHub Action's update-translation job" | |
| 60 | 59 | - name: Check changes significance | |
| 61 | 60 | run: > | |
| 62 | - ! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# ' -I'^"Last-Translator: ' -I'^"Project-Id-Version: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> "$GITHUB_ENV" || exit 0 | ||
| 61 | + ! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# ' -I'^"Last-Translator: | ||
| 62 | + ' -I'^"Project-Id-Version: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> "$GITHUB_ENV" | ||
| 63 | + || exit 0 | ||
| 63 | 64 | - run: git add . | |
| 64 | 65 | - run: git commit -m "$(python manage_translation.py generate_commit_msg)" | |
| 65 | 66 | if: env.SIGNIFICANT_CHANGES | |
| 66 | 67 | - name: Push commit | |
| 67 | - uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0 | ||
| 68 | + uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0 | ||
| 68 | 69 | if: env.SIGNIFICANT_CHANGES | |
| 69 | 70 | with: | |
| 70 | 71 | branch: ${{ matrix.version }} | |
@@ -76,18 +77,18 @@ jobs: | |||
| 76 | 77 | fail-fast: false | |
| 77 | 78 | matrix: | |
| 78 | 79 | version: [3.15, 3.14, 3.13, 3.12, 3.11] | |
| 79 | - needs: ['update'] | ||
| 80 | + needs: [update] | ||
| 80 | 81 | continue-on-error: true | |
| 81 | 82 | steps: | |
| 82 | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 83 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 83 | 84 | with: | |
| 84 | 85 | python-version: 3 | |
| 85 | 86 | - run: pip install sphinx-lint | |
| 86 | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 87 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 87 | 88 | with: | |
| 88 | 89 | ref: ${{ matrix.version }} | |
| 89 | 90 | persist-credentials: false | |
| 90 | - - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 | ||
| 91 | + - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 | ||
| 91 | 92 | - run: sphinx-lint | |
| 92 | 93 | ||
| 93 | 94 | build: | |
@@ -97,19 +98,19 @@ jobs: | |||
| 97 | 98 | matrix: | |
| 98 | 99 | version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10'] | |
| 99 | 100 | format: [html, latex, epub] | |
| 100 | - needs: ['update'] | ||
| 101 | + needs: [update] | ||
| 101 | 102 | steps: | |
| 102 | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 103 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 103 | 104 | with: | |
| 104 | - python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63) | ||
| 105 | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 105 | + python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see # 63) | ||
| 106 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 106 | 107 | with: | |
| 107 | 108 | repository: python/cpython | |
| 108 | 109 | ref: ${{ matrix.version }} | |
| 109 | 110 | persist-credentials: false | |
| 110 | 111 | - run: make venv | |
| 111 | 112 | working-directory: ./Doc | |
| 112 | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 113 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| 113 | 114 | with: | |
| 114 | 115 | ref: ${{ matrix.version }} | |
| 115 | 116 | path: Doc/locales/pl/LC_MESSAGES | |
@@ -118,10 +119,10 @@ jobs: | |||
| 118 | 119 | working-directory: ./Doc/locales/pl/LC_MESSAGES | |
| 119 | 120 | - run: sudo apt-get update && sudo apt-get install -y librsvg2-bin | |
| 120 | 121 | if: ${{ matrix.format == 'latex' && fromJSON(matrix.version) >= 3.14 }} | |
| 121 | - - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 | ||
| 122 | + - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 | ||
| 122 | 123 | - run: make -e SPHINXOPTS="--color -D language='pl' -W --keep-going" ${{ matrix.format }} | |
| 123 | 124 | working-directory: ./Doc | |
| 124 | - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| 125 | + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| 125 | 126 | if: success() || failure() | |
| 126 | 127 | with: | |
| 127 | 128 | name: build-${{ matrix.version }}-${{ matrix.format }} | |
@@ -132,15 +133,15 @@ jobs: | |||
| 132 | 133 | strategy: | |
| 133 | 134 | matrix: | |
| 134 | 135 | version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10'] | |
| 135 | - needs: ['build'] | ||
| 136 | + needs: [build] | ||
| 136 | 137 | steps: | |
| 137 | - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| 138 | + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| 138 | 139 | with: | |
| 139 | 140 | name: build-${{ matrix.version }}-latex | |
| 140 | 141 | - run: sudo apt-get update | |
| 141 | 142 | - run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy | |
| 142 | 143 | - run: make | |
| 143 | - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| 144 | + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| 144 | 145 | with: | |
| 145 | 146 | name: build-${{ matrix.version }}-pdf | |
| 146 | 147 | path: . | |
@@ -150,14 +151,14 @@ jobs: | |||
| 150 | 151 | strategy: | |
| 151 | 152 | matrix: | |
| 152 | 153 | version: [3.15, 3.14] | |
| 153 | - needs: ['build'] | ||
| 154 | + needs: [build] | ||
| 154 | 155 | continue-on-error: true | |
| 155 | 156 | steps: | |
| 156 | - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 157 | + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| 157 | 158 | with: | |
| 158 | 159 | python-version: 3.x | |
| 159 | - - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| 160 | - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| 160 | + - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| 161 | + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| 161 | 162 | with: | |
| 162 | 163 | name: build-${{ matrix.version }}-epub | |
| 163 | 164 | - run: uvx epubcheck | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,5 +40,10 @@ repos: | |||
| 40 | 40 | - id: zizmor | |
| 41 | 41 | args: [--fix] | |
| 42 | 42 | ||
| 43 | + - repo: https://github.com/lyz-code/yamlfix/ | ||
| 44 | + rev: f857ca370af3db7e5e181373d45c06a148fac3f8 # frozen: 1.19.1 | ||
| 45 | + hooks: | ||
| 46 | + - id: yamlfix | ||
| 47 | + | ||
| 43 | 48 | ci: | |
| 44 | 49 | autoupdate_schedule: quarterly | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,8 @@ | |||
| 1 | + [tool.ruff.format] | ||
| 2 | + quote-style = "single" | ||
| 3 | + | ||
| 4 | + [tool.yamlfix] | ||
| 5 | + whitelines = 1 | ||
| 6 | + section_whitelines = 1 | ||
| 7 | + explicit_start = false | ||
| 8 | + line_length = 88 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments