Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .JuliaFormatter.toml

This file was deleted.

17 changes: 9 additions & 8 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ SolarPosition.jl provides a simple, unified interface to a collection of validat

### General Style

1. **Indentation**: Use 4 spaces (configured in `.JuliaFormatter.toml`)
2. **Line length**: Maximum 92 characters (configured in `.JuliaFormatter.toml`)
1. **Indentation**: Use 4 spaces
2. **Line length**: Maximum 92 characters (soft limit, not enforced)
3. **Line endings**: Unix-style LF only
4. **Formatting**: Code is automatically formatted with JuliaFormatter
- Run manually: `julia -e 'using JuliaFormatter; format(".")'`
4. **Formatting**: Code is automatically formatted with Runic
- Run manually: `julia -m Runic --inplace .` (requires Runic to be installed)
- Pre-commit hooks ensure formatting before commits
- Note: Runic has no configuration - formatting rules are set in stone

### Documentation

Expand Down Expand Up @@ -115,7 +116,7 @@ pip install pre-commit
pre-commit run --all-files

# Individual tools:
# - JuliaFormatter: Code formatting
# - Runic: Code formatting
# - ExplicitImports: Check for explicit imports
# - markdownlint: Markdown linting
# - yamllint: YAML linting
Expand Down Expand Up @@ -172,8 +173,8 @@ The project uses GitHub Actions workflows:
## Useful Commands

```bash
# Format code
julia -e 'using Pkg; pkg"add JuliaFormatter"; using JuliaFormatter; format(".")'
# Format code (requires Runic to be installed: julia --project=@runic -e 'using Pkg; Pkg.add("Runic")')
julia --project=@runic --startup-file=no -m Runic --inplace .

# Run tests
julia --project=. -e 'using Pkg; Pkg.test()'
Expand All @@ -192,6 +193,6 @@ See [docs/src/contributing.md](../docs/src/contributing.md) for detailed contrib

## References

- [JuliaFormatter documentation](https://domluna.github.io/JuliaFormatter.jl/stable/)
- [Runic documentation](https://github.com/fredrikekre/Runic.jl)
- [DocStringExtensions documentation](https://juliadocs.org/DocStringExtensions.jl/stable/)
- [Julia Style Guide](https://docs.julialang.org/en/v1/manual/style-guide/)
2 changes: 0 additions & 2 deletions .github/workflows/Copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
version: "1"
- name: Use Julia cache
uses: julia-actions/cache@v2
- name: Install JuliaFormatter.jl
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
run: touch requirements.txt
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Build package (required for ExplicitImports)
uses: julia-actions/julia-buildpkg@v1
- name: Install Julia packages
run: julia -e 'using Pkg; pkg"add ExplicitImports, JuliaFormatter"'
run: julia -e 'using Pkg; pkg"add ExplicitImports"'
- name: Hack for setup-python cache # https://github.com/actions/setup-python/issues/807
run: touch requirements.txt
- name: Setup Python
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ node_modules
play/Project.toml
docs/.CondaPkg/meta
*.mem
**/Manifest-*.toml
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ repos:
- id: check-json
- id: check-toml
- id: check-yaml
- id: file-contents-sorter
files: .JuliaFormatter.toml
args: [--unique]
- id: mixed-line-ending
args: [--fix=lf]
- id: no-commit-to-branch
Expand Down Expand Up @@ -47,10 +44,10 @@ repos:
- id: explicit-imports
name: ExplicitImports checks
args: [--print, --checklist, exclude_all_qualified_accesses_are_public]
- repo: https://github.com/domluna/JuliaFormatter.jl
rev: v2.2.1
- repo: https://github.com/fredrikekre/runic-pre-commit
rev: v2.0.1
hooks:
- id: julia-formatter
- id: runic
- repo: https://github.com/crate-ci/typos
rev: v1
hooks:
Expand Down
Binary file modified benchmark/.CondaPkg/meta
Binary file not shown.
Loading
Loading