Skip to content

Commit

Permalink
feat(#2737): Attempt to fix linter pipeline...
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Feb 16, 2025
1 parent 42e55e5 commit de67538
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,34 @@ on:
pull_request:
branches: [ main, develop ]

permissions: {}

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v5
uses: super-linter/super-linter/slim@v7
env:
DEFAULT_BRANCH: develop
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_ISORT_CONFIG_FILE: pyproject.toml
PYTHON_FLAKE8_CONFIG_FILE: .flake8
FILTER_REGEX_EXCLUDE: (.*/migrations/.*|urls\.py)
FILTER_REGEX_EXCLUDE: (.*/migrations/.*)
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_BLACK: true
VALIDATE_PYTHON_FLAKE8: true
Expand Down
6 changes: 2 additions & 4 deletions amy/workshops/management/commands/fake_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,7 @@ def fake_workshop_inquiries(self, count=10):
public_event=public_event,
public_event_other=public_event_other,
additional_contact=(
"Test Person <[email protected]>;"
"Another Person <[email protected]>" # use ";" as separator
"Test Person <[email protected]>; Another Person <[email protected]>" # use ";" as separator
),
location=self.faker.city(),
country=choice(Countries)[0],
Expand Down Expand Up @@ -825,8 +824,7 @@ def fake_selforganised_submissions(self, count=10):
public_event=public_event,
public_event_other=public_event_other,
additional_contact=(
"Test Person <[email protected]>;"
"Another Person <[email protected]>" # use ";" as separator
"Test Person <[email protected]>; Another Person <[email protected]>" # use ";" as separator
),
workshop_url=self.faker.url(),
workshop_format=workshop_format,
Expand Down

0 comments on commit de67538

Please sign in to comment.