fff-ir-lint
Finds common mistakes in .ir files (FlipperFormat).
DOES NOT AUTOMATICALLY FIX ANY ERRORS
Usage
$ python3 main.py <format> [file 1] [file 2] ... [file n]
$ python3 main.py <format> 'glob:**/*.ir'
Note: You can use glob-pattern by prefixing
glob:
Formats
GitHub
Specify
githuborgithub2(newer) for format
Simple
Specify
simplefor format
→ python3 main.py simple remote.ir
*********************************
[lint] checking 'remote.ir' [1/1]
Error in line 19
'protocol:NEC'
↑
[error]: space missing after ':'
[suggested] 'protocol: NEC'
---
Error in line 19
'protocol:NEC'
↑↑↑↑↑↑↑↑
[error]: key 'type' expected
[suggested] 'type: ...'
---
[lint] found 2 warnings/errors in file.
*********************************
CI/CD
An example GitHub Actions Workflow can be found here.
The linter should work in a CI/CD pipeline.
Just put the example in your repo under the .github/workflows directory and
enable
actions in the repo if necessary.
If a pull request is created in which .ir files are modified, the linter checks the modified (or newly created) .ir files.
If errors are found, they are appended as a comment to the PR and the PR is set to Requested Changes.
Metadata
Release files for fff-ir-lint 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fff_ir_lint-0.0.1.tar.gz | 492.5 kB | Without provenance | Details for fff_ir_lint-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fff_ir_lint-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fff_ir_lint-0.0.1-py3-none-any.whl |
Total release size: 502.6 kB
Release files / fff_ir_lint-0.0.1.tar.gz
| Download URL | fff_ir_lint-0.0.1.tar.gz |
|---|---|
| Size | 492.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dd1fcc19c060c9b6dbc23190da23630a3683391d9369feb4e8a583414119e5c
|
|
BLAKE2b-256 checksum How to use checksums |
00d4307da41e37ba844ae60b6ad0745c1604ce6123bf6e4e3fde563e5a3bd894
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.7
|
Release files / fff_ir_lint-0.0.1-py3-none-any.whl
| Download URL | fff_ir_lint-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3f6fb16ca8a4b852b6c26aa2741ca00bf36bc3fb5a255474634ff1b67334b36
|
|
BLAKE2b-256 checksum How to use checksums |
a26dd467f7ded5ed1489d8d87ba4e2df8198b798df0034381c31ae7ac16a2ba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.7
|
Security for fff-ir-lint 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.