links:
- CONTRIBUTING.md of online-judge-tools organization
- DESIGN.md
Do the following steps:
- Open an issue about the support for your language
- Make a file
onlinejudge_verify/languages/YOUR_LANGUAGE.py
- Implement a sub-class of
onlinejudge_verify.languages.models.Language
- Implement a sub-class of
onlinejudge_verify.languages.models.LanguageEnvironment
- Implement a sub-class of
- Register your language at
onlinejudge_verify/languages/list.py
- Add tests to
tests/
dir if possible - Update documents
.verify-helper/docs/static/document.md
(or.verify-helper/docs/static/document.ja.md
)
.github/workflows/format.yml defines the format checking.
You can run the format checking with the following commands. You can automatically run this with copying this script into your .git/hooks/pre-commit
.
#!/bin/bash
set -e
mypy onlinejudge_verify onlinejudge_bundle tests setup.py
pylint --rcfile=setup.cfg onlinejudge_verify onlinejudge_bundle tests setup.py
isort --check-only --diff onlinejudge_verify onlinejudge_bundle tests setup.py
yapf --diff --recursive onlinejudge_verify onlinejudge_bundle tests setup.py
You can automatically fix some errors with the following commands.
isort onlinejudge_verify onlinejudge_bundle tests setup.py
yapf --in-place --recursive onlinejudge_verify onlinejudge_bundle tests setup.py