From 5dd16067f0c720146736d4802e9abc3cf63564fe Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 12 Sep 2025 00:15:36 -0500 Subject: [PATCH 1/3] remove unuesd file --- templates/snippets/template.cc | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 templates/snippets/template.cc diff --git a/templates/snippets/template.cc b/templates/snippets/template.cc deleted file mode 100644 index a1a79b3..0000000 --- a/templates/snippets/template.cc +++ /dev/null @@ -1,9 +0,0 @@ -#include -using namespace std; - -int main() { - ios_base::sync_with_stdio(false); - cin.tie(nullptr); - - return 0; -} From f643b6713aaf042ce7e48417279b99a521ec307c Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 12 Sep 2025 00:17:29 -0500 Subject: [PATCH 2/3] feat(ci); ruff on python files --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21d9968..890d288 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,3 +23,15 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --display-style quiet . + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: Install ruff + run: uv tool install ruff + + - name: Check Python formatting with ruff + run: ruff format --check templates/scrapers/ + + - name: Lint Python files with ruff + run: ruff check templates/scrapers/ From 84f25d5591816aaaf0cf3aa1fd1c50430cc58466 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 12 Sep 2025 00:27:02 -0500 Subject: [PATCH 3/3] fix ci --- .github/workflows/ci.yml | 25 +++++++++++++++++++++---- readme.md | 7 +++++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 890d288..b2e897f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,31 +7,48 @@ on: branches: [main] jobs: - stylua: + lua-format: + name: Lua Formatting runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: JohnnyMorganz/stylua-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} version: latest args: --check . + lua-lint: + name: Lua Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 - name: Lint with Selene uses: NTBBloodbath/selene-action@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} args: --display-style quiet . + python-format: + name: Python Formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v4 - - name: Install ruff run: uv tool install ruff - - name: Check Python formatting with ruff run: ruff format --check templates/scrapers/ + python-lint: + name: Python Linting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v4 + - name: Install ruff + run: uv tool install ruff - name: Lint Python files with ruff run: ruff check templates/scrapers/ diff --git a/readme.md b/readme.md index 0bcdc7e..15405b5 100644 --- a/readme.md +++ b/readme.md @@ -17,8 +17,10 @@ neovim plugin for competitive programming. - Neovim 0.9+ - `make` -- [uv](https://docs.astral.sh/uv/) for problem scraping (optional) -- [LuaSnip](https://github.com/L3MON4D3/LuaSnip) for snippets (optional) +- [uv](https://docs.astral.sh/uv/): problem scraping (optional) +- [LuaSnip](https://github.com/L3MON4D3/LuaSnip): contest-specific snippets (optional) +- [vim-zoom](https://github.com/dhruvasagar/vim-zoom): better diff view + (optional) ## Installation @@ -42,6 +44,7 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim): ## TODO +- remove vim-zoom dependency - vimdocs - example video - more flexible setup (more of a question of philosophy)