Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exercism exercises in Python.

License

NotificationsYou must be signed in to change notification settings

kevintogit/python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusRequirements StatusJoin the chat at https://gitter.im/exercism/python

Exercism exercises in Python

Contributing Guide

Please see thecontributing guide

Working on the Exercises

We welcome both improvements to the existing exercises and new exercises.A list of missing exercise can be found here:exercism#417 (comment)

Conventions

  • We use minimalistic stub files for all exercises (#272).
  • We useunittest (Python Standard Library) and no 3rd-party-framework.
  • We use the parameter orderself.assertEqual(actual, expected) (#440).
  • We use context managers (with self.assertRaises(\<exception type\>):) for testing for exceptions (#477).
  • We use an established utility method to confirm that expected exceptions contain a non-empty message. This method must be included for any test class with an exception-based test case (#1080).
  • We useassertIs(actual, True) andassertIs(actual, False) rather thanassertTrue(actual) orassertFalse(actual) (#419).
  • We use a comment string in the test file to reference the version of the exercise'scanonical-data.json that tests were adapted from (wording can be found in:#784).

Testing

All exercises must be compatible with Python versions 2.7 and 3.4 upwards.

To test a single exercise (e.g., with Python 2.7):

python2.7 test/check-exercises.py [exercise-name]

To test all exercises (e.g., with Python 3):

python3 test/check-exercises.py

Code Style

The Python code in this repo is meant to follow thePEP8 style guide (a stylized versionhttp://pep8.org).

This repo usesflake8 with default settings to enforce the coding standard.

CI build

This repo usestravis-ci in the following configuration:travis.yml

It will automatically check the code style, the problem configuration, and run the unittests with all supported Python versions.

Pull Requests

We ❤️ pull requests!We even 💖 them if they contain well written commit messages!

Please write the first line of your commit message in the following style:

exercise-name: Change some things

Please try to follow theThe seven rules of a great Git commit message like to capitalize the subject line and use the imperative mood. If there are more details to add, put those into the body of the commit message.

If you're interested, Tim Pope even has anentire blog post on good commit messages.

If you're new to Git, take a look atthis short guide.

License

This repository uses theMIT License.

About

Exercism exercises in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python99.8%
  • Shell0.2%

[8]ページ先頭

©2009-2025 Movatter.jp