Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 2.33 KB

CONTRIBUTING.md

File metadata and controls

64 lines (40 loc) · 2.33 KB

CONTRIBUTING.md

(このドキュメントの日本語バージョン: CONTRIBUTING.ja.md)

How can I contribute to this project?

Currently, you can help us with the following ways:

  • Please find tasks of competitive programming which are seems to be automatically solved, and reporting them in comments of an issue.
    • If possible, please send to us pull requests which add Python codes with stupid algorithms and test cases for the tasks to examples/wip/ directory.
    • The problems which you found and Python codes which you sent are used for testing.

Development process and conventions

Tests

Use the following commands to run tests. Hspec and Doctest are enabled. Also contents of examples/ directory are verified.

$ stack test
$ bash examples/test.sh

The GitHub Actions for tests is defined at .github/workflows/test.yml.

Formatting

Use the following commands to check formatting. Ormolu and HLint are enabled.

$ stack exec ormolu -- --mode=check $(find src app test -name \*.hs)
$ stack exec hlint -- src app test

Use the following command to fix formatting automatically as possible.

$ stack exec ormolu -- --mode=check $(find src app test -name \*.hs)

The GitHub Actions for formatting if defined at .github/workflows/format.yml.

Documents

Haddock is used for internal documents of internal implementation. Run the following command to generate documents locally.

$ stack haddock

Commit messages

Use Conventional Commits.

Versioning

Semantic Versioning is used with regard to the Python-like language as its public API. However, it has two MAJOR version that come from Haskell Package Versioning Policy.