Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crerate job to run linters #13

Merged
merged 3 commits into from
Jul 23, 2024
Merged

Crerate job to run linters #13

merged 3 commits into from
Jul 23, 2024

Conversation

gkodrzycki
Copy link
Collaborator

Close #11

@gkodrzycki gkodrzycki linked an issue Jul 23, 2024 that may be closed by this pull request
@gkodrzycki gkodrzycki requested a review from Kabanosk July 23, 2024 12:28
Comment on lines 66 to 94

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==1.8.1
poetry install --no-root

- name: Run isort
run: |
poetry run isort --check-only .

- name: Run black
run: |
poetry run black --check .

- name: Run pylint
run: |
poetry run pylint **/*.py
Copy link
Owner

@Kabanosk Kabanosk Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we want linting in workflow named test.yml. Maybe we can create new workflow for linting? E.g. lint.yml

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, changed it

Copy link
Owner

@Kabanosk Kabanosk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gkodrzycki gkodrzycki merged commit 141940a into main Jul 23, 2024
4 checks passed
@gkodrzycki gkodrzycki deleted the 11-ci-upgrade branch July 23, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI upgrade
2 participants