Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Seasawher/import-all
This script can check and auto-generate `import` statements in a lean4 repository.
https://github.com/Seasawher/import-all
lean lean4
Last synced: about 1 month ago
JSON representation
This script can check and auto-generate `import` statements in a lean4 repository.
- Host: GitHub
- URL: https://github.com/Seasawher/import-all
- Owner: Seasawher
- License: mit
- Created: 2024-01-06T14:29:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-27T12:43:40.000Z (10 months ago)
- Last Synced: 2024-08-10T14:11:39.667Z (5 months ago)
- Topics: lean, lean4
- Language: Lean
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# import-all
This is not my original. see [yatima](https://github.com/lurk-lab/yatima/blob/main/lakefile.lean)
* Almost all of this script is taken from .
* is licensed under the MIT license.## how to use this
Add this repository to your `lakefile`:
```lean
require «import-all» from git
"https://github.com/Seasawher/import-all" @ "main"
```Don't forget to run `lake update import-all` after editing the `lakefile`.
Now you can run `lake exe import_all ` and `lake exe import_check `.
* `import_all` auto generate `import` statements for lean files in ``
* `import_check` is mainly for CI. This command checks to see if the lean files in `` have been imported correctly.
## You may not need to use this repository
What are you going to use this script for? If you want to ensure that all files are built every time you run `lake build`, this repository is not necessary. Instead, add the following settings to your `lakefile`. (replace `YourProject` with your project directory name 😃)
```lean
@[default_target]
lean_lib «YourProject» where
globs := #[.submodules `YourProject]
```