Skip to content

improved pathlib #618

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

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
8c23603
initial Path:new
jamestrew Aug 22, 2024
815fb2c
make_relative done
jamestrew Aug 23, 2024
977f057
new new Path start
jamestrew Aug 25, 2024
9895af2
add path joining and is_dir
jamestrew Aug 25, 2024
049335c
exist and is_file
jamestrew Aug 25, 2024
f4072c4
change parts to relparts
jamestrew Aug 25, 2024
32ddebb
update Path instantiation and path parsing
jamestrew Aug 26, 2024
8c903b7
fix up unix stuff a bit
jamestrew Aug 26, 2024
ecde342
more instantiation improvements
jamestrew Aug 26, 2024
9992fd8
pass most of `make_relative`
jamestrew Aug 27, 2024
a21b58b
finish up `make_relative`
jamestrew Aug 27, 2024
53587fe
fix home directory
jamestrew Aug 28, 2024
7d2186a
add `shorten`
jamestrew Aug 28, 2024
030ee62
add mkdir & rmdir
jamestrew Aug 28, 2024
34c4f55
minor fixes
jamestrew Aug 29, 2024
c150316
more fixes
jamestrew Aug 29, 2024
9f8ab34
add touch
jamestrew Aug 29, 2024
324e52b
delete path4
jamestrew Aug 29, 2024
826613f
add 'touch', 'rm', & read methods
jamestrew Aug 31, 2024
577995c
rename
jamestrew Aug 31, 2024
4e164d3
implement `copy`
jamestrew Sep 1, 2024
72c8734
head and tail
jamestrew Sep 1, 2024
f3c0169
add `write` and fix read file closing
jamestrew Sep 1, 2024
21afd79
improve head/tail line endings compat
jamestrew Sep 1, 2024
25b3f63
add param validation
jamestrew Sep 1, 2024
1d9bafc
add `readbyterange`
jamestrew Sep 1, 2024
a76ee04
add `find_upwards`
jamestrew Sep 2, 2024
7b2f24f
add `expand`
jamestrew Sep 2, 2024
41b9d56
fix linting errors/tests
jamestrew Sep 2, 2024
2c530fe
fix formatting
jamestrew Sep 2, 2024
539d86a
more `make_relative` tests
jamestrew Sep 2, 2024
b17c61f
add some windows tests to ci
jamestrew Sep 2, 2024
e377608
debug ci tests
jamestrew Sep 3, 2024
6a9654b
should fix ci tests
jamestrew Sep 3, 2024
a99b7c2
fix another test
jamestrew Sep 3, 2024
8c78935
clean up notes
jamestrew Sep 5, 2024
31b7ab2
add normalize and clean up
jamestrew Sep 6, 2024
4c7081f
dont test windows stuff on linux
jamestrew Sep 6, 2024
ca13fb5
normalize ignore bad make_relative
jamestrew Sep 6, 2024
871827f
unset test env vars
jamestrew Sep 7, 2024
1211b5c
format
jamestrew Sep 7, 2024
87277a0
rework env var expansion
jamestrew Sep 9, 2024
42275a4
api param tweaks
jamestrew Sep 10, 2024
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
29 changes: 24 additions & 5 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- os: ubuntu-22.04
rev: v0.10.0/nvim-linux64.tar.gz
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: _neovim
key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}
Expand All @@ -42,12 +42,31 @@ jobs:
nvim --version
make test

run_tests_windows:
name: unit tests (Windows)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022]
rev: [nightly, v0.7.2, v0.8.3, v0.9.5, v0.10.0]
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.rev }}
- name: Run tests
run: |
nvim --version
nvim --headless --noplugin -u scripts/minimal.vim -c "PlenaryBustedFile tests/plenary/path2_spec.lua"

stylua:
name: stylua
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
Expand All @@ -58,7 +77,7 @@ jobs:
name: Luacheck
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare
run: |
Expand Down
Loading