| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + # Ignore list | ||
| 2 | + /* | ||
| 3 | + | ||
| 4 | + # Do not ignore these folders: | ||
| 5 | + !__tests__/ | ||
| 6 | + !src/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,49 @@ | |||
| 1 | + module.exports = { | ||
| 2 | + extends: [ | ||
| 3 | + 'eslint:recommended', | ||
| 4 | + 'plugin:@typescript-eslint/recommended', | ||
| 5 | + 'plugin:eslint-plugin-jest/recommended', | ||
| 6 | + 'eslint-config-prettier' | ||
| 7 | + ], | ||
| 8 | + parser: '@typescript-eslint/parser', | ||
| 9 | + plugins: ['@typescript-eslint', 'eslint-plugin-jest'], | ||
| 10 | + rules: { | ||
| 11 | + '@typescript-eslint/no-require-imports': 'error', | ||
| 12 | + '@typescript-eslint/no-non-null-assertion': 'off', | ||
| 13 | + '@typescript-eslint/no-explicit-any': 'off', | ||
| 14 | + '@typescript-eslint/no-empty-function': 'off', | ||
| 15 | + '@typescript-eslint/ban-ts-comment': [ | ||
| 16 | + 'error', | ||
| 17 | + { | ||
| 18 | + 'ts-ignore': 'allow-with-description' | ||
| 19 | + } | ||
| 20 | + ], | ||
| 21 | + 'no-console': 'error', | ||
| 22 | + 'yoda': 'error', | ||
| 23 | + 'prefer-const': [ | ||
| 24 | + 'error', | ||
| 25 | + { | ||
| 26 | + destructuring: 'all' | ||
| 27 | + } | ||
| 28 | + ], | ||
| 29 | + 'no-control-regex': 'off', | ||
| 30 | + 'no-constant-condition': ['error', {checkLoops: false}] | ||
| 31 | + }, | ||
| 32 | + overrides: [ | ||
| 33 | + { | ||
| 34 | + files: ['**/*{test,spec}.ts'], | ||
| 35 | + rules: { | ||
| 36 | + '@typescript-eslint/no-unused-vars': 'off', | ||
| 37 | + 'jest/no-standalone-expect': 'off', | ||
| 38 | + 'jest/no-conditional-expect': 'off', | ||
| 39 | + 'no-console': 'off', | ||
| 40 | + | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | + ], | ||
| 44 | + env: { | ||
| 45 | + node: true, | ||
| 46 | + es6: true, | ||
| 47 | + 'jest/globals': true | ||
| 48 | + } | ||
| 49 | + }; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1 @@ | |||
| 1 | - blank_issues_enabled: false | ||
| 1 | + blank_issues_enabled: false | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,4 +12,4 @@ on: | |||
| 12 | 12 | jobs: | |
| 13 | 13 | call-basic-validation: | |
| 14 | 14 | name: Basic validation | |
| 15 | - uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main | ||
| 15 | + uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,4 +14,4 @@ on: | |||
| 14 | 14 | jobs: | |
| 15 | 15 | call-check-dist: | |
| 16 | 16 | name: Check dist/ | |
| 17 | - uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main | ||
| 17 | + uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,12 +2,12 @@ name: CodeQL analysis | |||
| 2 | 2 | ||
| 3 | 3 | on: | |
| 4 | 4 | push: | |
| 5 | - branches: [ 'main' ] | ||
| 5 | + branches: ['main'] | ||
| 6 | 6 | pull_request: | |
| 7 | 7 | schedule: | |
| 8 | 8 | - cron: '0 3 * * 0' | |
| 9 | 9 | ||
| 10 | 10 | jobs: | |
| 11 | 11 | call-codeQL-analysis: | |
| 12 | - name: CodeQL analysis | ||
| 13 | - uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main | ||
| 12 | + name: CodeQL analysis | ||
| 13 | + uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -128,4 +128,4 @@ jobs: | |||
| 128 | 128 | pipenv install --keep-outdated --python pypy | |
| 129 | 129 | } else { | |
| 130 | 130 | pipenv install --keep-outdated --python ${{ matrix.python-version }} | |
| 131 | - } | ||
| 131 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ on: | |||
| 9 | 9 | pull_request: | |
| 10 | 10 | paths-ignore: | |
| 11 | 11 | - '**.md' | |
| 12 | - | ||
| 12 | + | ||
| 13 | 13 | jobs: | |
| 14 | 14 | test-setup-python: | |
| 15 | 15 | name: Test setup-python | |
@@ -18,71 +18,71 @@ jobs: | |||
| 18 | 18 | matrix: | |
| 19 | 19 | operating-system: [ubuntu-20.04, windows-latest] | |
| 20 | 20 | steps: | |
| 21 | - - name: Checkout | ||
| 22 | - uses: actions/checkout@v3 | ||
| 21 | + - name: Checkout | ||
| 22 | + uses: actions/checkout@v3 | ||
| 23 | 23 | ||
| 24 | - - name: Run with setup-python 2.7 | ||
| 25 | - uses: ./ | ||
| 26 | - with: | ||
| 27 | - python-version: 2.7 | ||
| 28 | - - name: Verify 2.7 | ||
| 29 | - run: python __tests__/verify-python.py 2.7 | ||
| 24 | + - name: Run with setup-python 2.7 | ||
| 25 | + uses: ./ | ||
| 26 | + with: | ||
| 27 | + python-version: 2.7 | ||
| 28 | + - name: Verify 2.7 | ||
| 29 | + run: python __tests__/verify-python.py 2.7 | ||
| 30 | 30 | ||
| 31 | - - name: Run with setup-python 3.5 | ||
| 32 | - uses: ./ | ||
| 33 | - with: | ||
| 34 | - python-version: 3.5 | ||
| 35 | - - name: Verify 3.5 | ||
| 36 | - run: python __tests__/verify-python.py 3.5 | ||
| 31 | + - name: Run with setup-python 3.5 | ||
| 32 | + uses: ./ | ||
| 33 | + with: | ||
| 34 | + python-version: 3.5 | ||
| 35 | + - name: Verify 3.5 | ||
| 36 | + run: python __tests__/verify-python.py 3.5 | ||
| 37 | 37 | ||
| 38 | - - name: Run with setup-python 3.6 | ||
| 39 | - uses: ./ | ||
| 40 | - with: | ||
| 41 | - python-version: 3.6 | ||
| 42 | - - name: Verify 3.6 | ||
| 43 | - run: python __tests__/verify-python.py 3.6 | ||
| 38 | + - name: Run with setup-python 3.6 | ||
| 39 | + uses: ./ | ||
| 40 | + with: | ||
| 41 | + python-version: 3.6 | ||
| 42 | + - name: Verify 3.6 | ||
| 43 | + run: python __tests__/verify-python.py 3.6 | ||
| 44 | 44 | ||
| 45 | - - name: Run with setup-python 3.7 | ||
| 46 | - uses: ./ | ||
| 47 | - with: | ||
| 48 | - python-version: 3.7 | ||
| 49 | - - name: Verify 3.7 | ||
| 50 | - run: python __tests__/verify-python.py 3.7 | ||
| 45 | + - name: Run with setup-python 3.7 | ||
| 46 | + uses: ./ | ||
| 47 | + with: | ||
| 48 | + python-version: 3.7 | ||
| 49 | + - name: Verify 3.7 | ||
| 50 | + run: python __tests__/verify-python.py 3.7 | ||
| 51 | 51 | ||
| 52 | - - name: Run with setup-python 3.8 | ||
| 53 | - uses: ./ | ||
| 54 | - with: | ||
| 55 | - python-version: 3.8 | ||
| 56 | - - name: Verify 3.8 | ||
| 57 | - run: python __tests__/verify-python.py 3.8 | ||
| 52 | + - name: Run with setup-python 3.8 | ||
| 53 | + uses: ./ | ||
| 54 | + with: | ||
| 55 | + python-version: 3.8 | ||
| 56 | + - name: Verify 3.8 | ||
| 57 | + run: python __tests__/verify-python.py 3.8 | ||
| 58 | 58 | ||
| 59 | - - name: Run with setup-python 3.7.5 | ||
| 60 | - uses: ./ | ||
| 61 | - with: | ||
| 62 | - python-version: 3.7.5 | ||
| 63 | - - name: Verify 3.7.5 | ||
| 64 | - run: python __tests__/verify-python.py 3.7.5 | ||
| 59 | + - name: Run with setup-python 3.7.5 | ||
| 60 | + uses: ./ | ||
| 61 | + with: | ||
| 62 | + python-version: 3.7.5 | ||
| 63 | + - name: Verify 3.7.5 | ||
| 64 | + run: python __tests__/verify-python.py 3.7.5 | ||
| 65 | 65 | ||
| 66 | - - name: Run with setup-python 3.6.7 | ||
| 67 | - uses: ./ | ||
| 68 | - with: | ||
| 69 | - python-version: 3.6.7 | ||
| 70 | - - name: Verify 3.6.7 | ||
| 71 | - run: python __tests__/verify-python.py 3.6.7 | ||
| 66 | + - name: Run with setup-python 3.6.7 | ||
| 67 | + uses: ./ | ||
| 68 | + with: | ||
| 69 | + python-version: 3.6.7 | ||
| 70 | + - name: Verify 3.6.7 | ||
| 71 | + run: python __tests__/verify-python.py 3.6.7 | ||
| 72 | 72 | ||
| 73 | - - name: Run with setup-python 3.8.1 | ||
| 74 | - uses: ./ | ||
| 75 | - with: | ||
| 76 | - python-version: 3.8.1 | ||
| 77 | - - name: Verify 3.8.1 | ||
| 78 | - run: python __tests__/verify-python.py 3.8.1 | ||
| 73 | + - name: Run with setup-python 3.8.1 | ||
| 74 | + uses: ./ | ||
| 75 | + with: | ||
| 76 | + python-version: 3.8.1 | ||
| 77 | + - name: Verify 3.8.1 | ||
| 78 | + run: python __tests__/verify-python.py 3.8.1 | ||
| 79 | 79 | ||
| 80 | - - name: Run with setup-python 3.10 | ||
| 81 | - id: cp310 | ||
| 82 | - uses: ./ | ||
| 83 | - with: | ||
| 84 | - python-version: "3.10" | ||
| 85 | - - name: Verify 3.10 | ||
| 86 | - run: python __tests__/verify-python.py 3.10 | ||
| 87 | - - name: Run python-path sample 3.10 | ||
| 88 | - run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version | ||
| 80 | + - name: Run with setup-python 3.10 | ||
| 81 | + id: cp310 | ||
| 82 | + uses: ./ | ||
| 83 | + with: | ||
| 84 | + python-version: '3.10' | ||
| 85 | + - name: Verify 3.10 | ||
| 86 | + run: python __tests__/verify-python.py 3.10 | ||
| 87 | + - name: Run python-path sample 3.10 | ||
| 88 | + run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,4 +11,4 @@ on: | |||
| 11 | 11 | jobs: | |
| 12 | 12 | call-licensed: | |
| 13 | 13 | name: Licensed | |
| 14 | - uses: actions/reusable-workflows/.github/workflows/licensed.yml@main | ||
| 14 | + uses: actions/reusable-workflows/.github/workflows/licensed.yml@main | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,8 +21,8 @@ jobs: | |||
| 21 | 21 | name: releaseNewActionVersion | |
| 22 | 22 | runs-on: ubuntu-latest | |
| 23 | 23 | steps: | |
| 24 | - - name: Update the ${{ env.TAG_NAME }} tag | ||
| 25 | - uses: actions/publish-action@v0.2.2 | ||
| 26 | - with: | ||
| 27 | - source-tag: ${{ env.TAG_NAME }} | ||
| 28 | - slack-webhook: ${{ secrets.SLACK_WEBHOOK }} | ||
| 24 | + - name: Update the ${{ env.TAG_NAME }} tag | ||
| 25 | + uses: actions/publish-action@v0.2.2 | ||
| 26 | + with: | ||
| 27 | + source-tag: ${{ env.TAG_NAME }} | ||
| 28 | + slack-webhook: ${{ secrets.SLACK_WEBHOOK }} | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments