-
Notifications
You must be signed in to change notification settings - Fork 330
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 by Bors] - feat: rewrite the copyright header check in Lean #13240
Conversation
for Lean.Elab since this is transitively imported otherwise.
b32817e
to
bb0d550
Compare
…the build! This does not work reliably in CI...
e09bf3b
to
570fb91
Compare
exceptions to this form.
PR summary 18dae01c0bImport changesNo significant changes to the import graph Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
deb385c
to
4aab587
Compare
4aab587
to
9b16f4e
Compare
bors merge |
Merge conflict. |
bors d+ |
✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with |
9d5bfa2
to
18dae01
Compare
Thanks for the review! Since CI passes now, let me bors it already: |
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean. This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247. This PR also adds a `nolints` file for text-based linters.
Pull request successfully merged into master. Build succeeded: |
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean. This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247. This PR also adds a `nolints` file for text-based linters.
This is one in a series of PRs rewriting most checks from `lint-style.py` in Lean. This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247. This PR also adds a `nolints` file for text-based linters.
This is one in a series of PRs rewriting most checks from
lint-style.py
in Lean.This PR moves the check for copyright headers and authors: the check has been rewritten anew (and is hopefully simpler to understand now); this has made it stricter in various places. The necessary adjustments have been made in #13212 and #13247.
This PR also adds a
nolints
file for text-based linters.This linter is slightly slower than the Python linter: in local testing,
lake exe lint_style
with a no-op linter (incrementing a counter on each file) takes 0.4s(
time lake exe lint_style
reportsreal 0m0,404s; user 0m0,254s; sys 0m0,070s
; this is the second time when no re-compilation is needed)Any insight into minimising the no-op overhead is welcome (but almost surely out of scope for this PR).