Skip to content

radiol/atcoder-rye-ruff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atcoder-rye-ruff

AtCoder environment by Rye + Ruff

Install Rye

https://rye-up.com/

curl -sSf https://rye-up.com/get | bash

Install Libraries

Run in the atcoder-rye-ruff directory

rye sync

Install AtCoder-CLI

https://github.com/Tatamo/atcoder-cli

npm install -g atcoder-cli

Login AtCoder-CLI

acc login

Login Online-Judge-Tools

Activate virtual environment

sourve .venv/bin/activate

Login

oj login https://atcoder.jp/

Copy templates

Copy atcoder-cli-templates to acc config-dir. Check acc config-dir

cp -r atcoder-cli-templates/py `acc config-dir`

Edit acc-config

nvim `acc config-dir`/config.json
-> default-template:"py"

Usage

Create new directory

acc new abc001

Check test case

rye run oj t -c 'python3 main.py' -d ./tests/

Check test case after Format and Lint.

rye run black main.py && rye run ruff --fix main.py && rye run oj t -c 'python3 main.py' -d ./tests/

Submit

PyPy

acc s main.py -- --guess-python-interpreter pypy

Python

acc s main.py -- -l 5055

Run code

rye run python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages