Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
teorth committed Sep 26, 2024
1 parent 6549727 commit 834fe99
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
if: always() # Ensure the step runs regardless of the success or failure of previous steps
run: |
# Find Lean files with lines longer than 100 characters, excluding URLs
! (find Project -name "*.lean" -type f -exec grep -E -H -n '^.{101,}$' {} \; | grep -v -E 'https?://')
! (find equational_theories -name "*.lean" -type f -exec grep -E -H -n '^.{101,}$' {} \; | grep -v -E 'https?://')
- name: Don't 'import Mathlib', use precise imports
if: always() # Ensure the step runs regardless of the success or failure of previous steps
run: |
# Find and disallow any file that imports the entire Mathlib, encouraging precise imports instead
! (find Project -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Mathlib$')
! (find equational_theories -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Mathlib$')
1 change: 0 additions & 1 deletion Project.lean

This file was deleted.

1 change: 1 addition & 0 deletions equational_theories.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import equational_theories.Example
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lakefile.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "Project"
defaultTargets = ["Project"]
name = "equational_theories"
defaultTargets = ["equational_theories"]

[leanOptions]
pp.unicode.fun = true
Expand All @@ -11,4 +11,4 @@ name = "mathlib"
git = "https://github.com/leanprover-community/mathlib4.git"

[[lean_lib]]
name = "Project"
name = "equational_theories"

0 comments on commit 834fe99

Please sign in to comment.