.ir Linter for FFF
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fff_ir_lint-0.0.1.tar.gz.
File metadata
- Download URL: fff_ir_lint-0.0.1.tar.gz
- Upload date:
- Size: 492.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dd1fcc19c060c9b6dbc23190da23630a3683391d9369feb4e8a583414119e5c
|
|
| MD5 |
9ff1377bfb8e5178270a27d694f6758f
|
|
| BLAKE2b-256 |
00d4307da41e37ba844ae60b6ad0745c1604ce6123bf6e4e3fde563e5a3bd894
|
File details
Details for the file fff_ir_lint-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fff_ir_lint-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3f6fb16ca8a4b852b6c26aa2741ca00bf36bc3fb5a255474634ff1b67334b36
|
|
| MD5 |
7db8ab64a69f3fdeafc10a4a82edacf8
|
|
| BLAKE2b-256 |
a26dd467f7ded5ed1489d8d87ba4e2df8198b798df0034381c31ae7ac16a2ba6
|