8000 CI Improvements; more focused runs and best practices by pww217 · Pull Request #236 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

CI Improvements; more focused runs and best practices #236

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

Merged
merged 7 commits into from
May 6, 2022

Conversation

pww217
Copy link
Contributor
@pww217 pww217 commented May 5, 2022

Small changes, as the title says.

Question though: is there any overlap between the pre-commit python linting and Philipp's lint.yaml? The latter looks like JS linting, but want to confirm so there's no redundancy.

If they're different, may be possible to add that to pre-commit as well. Up to y'all.

@pww217 pww217 changed the title Core 66/ci improvements CI Improvements; more focused runs and best practices May 5, 2022
@pww217 pww217 added tag: tests Related to tests tag: tooling Related to the configuration of infrastructure and tooling labels May 5, 2022
@pww217 pww217 force-pushed the CORE-66/ci-improvements branch from 8ec298d to 4b85380 Compare May 5, 2022 18:53
@pww217 pww217 marked this pull request as ready for review May 5, 2022 18:55
@pww217 pww217 requested review from philippjfr and mattkram May 5, 2022 18:55
@mattkram
Copy link
Contributor
mattkram commented May 5, 2022

I've actually got a pre-commit hook locally which I haven't made a PR for yet which does eslint. I haven't spent the time to tweak settings, but we should be able to remove lint.yml once we get the settings right.

-   repo: https://github.com/pre-commit/mirrors-eslint
    rev: 'v8.14.0'
    hooks:
    -   id: eslint
        additional_dependencies:
        -   eslint@>=5.16.0
        -   eslint-config-google@latest

@pww217
Copy link
Contributor Author
pww217 commented May 5, 2022

I added that to pre-commit @mattkram but it's failing - looks like the path is wrong. Not really seeing what argument is used to change that in the docs, but it's defaulting to /code/...

@mattkram
Copy link
Contributor
mattkram commented May 5, 2022

Oh, I may need to give you a config file. Lemme try locally.

- id: eslint
additional_dependencies:
- eslint@>=5.16.0
- eslint-config-google@latest
Copy link
Contributor

Choose a reason for hiding this comment

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

⛔️ means that GitHub wants files to end with one and 8000 only one \n

@mattkram
Copy link
Contributor
mattkram commented May 5, 2022

@pww217 Let's keep this in lint.yml. Needs some more work to untangle all the dependencies.

This is tough because eslint needs some plugins, and also the npm root is not the repo root.

@pww217
Copy link
Contributor Author
pww217 commented May 6, 2022

Already deleted eslint from pre-commit for now.

@pww217 pww217 merged commit b84017d into main May 6, 2022
@pww217 pww217 deleted the CORE-66/ci-improvements branch May 6, 2022 14:47
barnwell pushed a commit to barnwell/pyscript that referenced this pull request May 6, 2022
* add path filtering

* small improvements for clarity, more focused run triggers, best practices

* formatting

* add js linting to pre-commit

* Update .pre-commit-config.yaml

* Update .pre-commit-config.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: tests Related to tests tag: tooling Related to the configuration of infrastructure and tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0