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

Experimental CLI interface (alpha version) #255

Merged
merged 55 commits into from Feb 6, 2021
Merged

Conversation

andreoliwa
Copy link
Owner

@andreoliwa andreoliwa commented Feb 5, 2021

Suggested Feature

Run Nitpick as a CLI command instead of being dependent on flake8.
Paving the way to #260.

$ poetry run nitpick --help
Usage: nitpick [OPTIONS]

  Enforce the same configuration across multiple projects.

Options:
  -p, --project DIRECTORY  Path to project root
  --offline                Offline mode: no style will be downloaded (no HTTP
                           requests at all)

  -c, --check              Don't modify the configuration files, just print
                           the difference. Return code 0 means nothing would
                           change. Return code 1 means some files would be
                           modified.

  -v, --verbose            Verbose logging
  --help                   Show this message and exit.

Context

⚠️ This is an experimental version. ⚠️

It's still a work in progress:

After an extensive internal refactoring, this first version is functional.
The CLI output has to be adjusted, it's not guaranteed to work yet... but it's a decent start.

@andreoliwa andreoliwa changed the title CLI interface (alpha/experimental version) Experimental CLI interface (alpha version) Feb 6, 2021
@andreoliwa andreoliwa mentioned this pull request Feb 6, 2021
10 tasks
@andreoliwa andreoliwa merged commit c9ca5dc into develop Feb 6, 2021
@andreoliwa andreoliwa deleted the experimental-cli branch February 6, 2021 16:45
github-actions bot pushed a commit that referenced this pull request Feb 23, 2021
# [0.24.0](v0.23.1...v0.24.0) (2021-02-23)

### Bug Fixes

* check a YAML file with the text plugin ([#249](#249)) ([1821962](1821962))
* override a remote style with "./your-local-style.toml" ([#295](#295)) ([fe5f085](fe5f085))
* toml module now accepts keys beginning with dot (fix [#183](#183)) ([b086a24](b086a24))
* validate sections in comma_separated_values (fix [#227](#227)) ([f1be98f](f1be98f))

### Features

* apply changes to pyproject.toml ([#287](#287)) ([4b79f81](4b79f81))
* apply changes to setup.cfg ([#288](#288)) ([f878630](f878630))
* **cli:** add 'ls' command to list configured files ([cfc031b](cfc031b))
* **cli:** add 'run' command to display violations ([a67bfa8](a67bfa8))
* **cli:** filter only the desired files on ls/run commands ([#265](#265)) ([f5e4a9c](f5e4a9c))
* drop support for Python 3.5 ([#251](#251)) ([9f84a60](9f84a60)), closes [#250](#250)
* experimental CLI interface (alpha version) ([#255](#255)) ([c9ca5dc](c9ca5dc))
@github-actions
Copy link

🎉 This PR is included in version 0.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Feature/fix is released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant