Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

woops #152

Closed
wants to merge 509 commits into from
Closed

woops #152

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
509 commits
Select commit Hold shift + click to select a range
a964799
break_long_words=True now supported by term.wrap
jquast Jan 4, 2015
78cbca8
make termwrap test less computationally expensive
jquast Jan 4, 2015
f568bfa
use linux-friendly form of ``toe -a``
jquast Jan 4, 2015
ecda1a2
Merge pull request #40 from jquast/test-a-whole-lotta-terms
jquast Jan 4, 2015
6d9e276
fix enter/exit fullscreen comment
jquast Jan 4, 2015
8f264ce
revert test paragraph, we have a bug to squash yet
jquast Jan 4, 2015
beaa290
Merge pull request #39 from jquast/break-really-long-words
jquast Jan 4, 2015
a3c5b7d
bugfix textwrap when a 'word' ends with a sequence
jquast Jan 4, 2015
a843591
add sudo: false for faster travis-ci builds
jquast Jan 4, 2015
bf913ea
Merge pull request #41 from jquast/break_long_words-ending-in-sequence
jquast Jan 4, 2015
d42ce2d
Merge remote-tracking branch 'upstream/master' into merge-upstream
jquast Jan 4, 2015
22c1eea
Merge remote-tracking branch 'origin/master' into merge-upstream
jquast Jan 4, 2015
1965724
fix the rename thing
jquast Jan 4, 2015
18baad7
Merge branch 'merge-upstream'
jquast Jan 4, 2015
300552b
post-merge README flub
jquast Jan 4, 2015
9ea3e82
wheel support
jquast Jan 4, 2015
3ad2f12
blessed should be zip_safe
jquast Jan 4, 2015
58a5959
use all svg-based badges
jquast Jan 4, 2015
0659f10
Add TeamCity build status, use png instead of svg.
jquast Jan 4, 2015
600474f
remove 'screenshots' section temporarily
jquast Jan 12, 2015
5ded6a8
FreeBSD support, updates for prospector (static analysis)
jquast Feb 22, 2015
3d926d1
make bin/editor.py python2 compatible
jquast Sep 21, 2015
b0e45b1
Merge pull request #52 from jquast/python2-editor-example
jquast Sep 21, 2015
1af188b
Backmerge rejected upstream enhancements
jquast Oct 2, 2015
47526dc
bugfix `` marker
jquast Oct 2, 2015
a3f8881
bugfix length of '\x1b[m' ('normal')
jquast Oct 2, 2015
18da49d
integrate display-{sighandlers,terminalinfo} in CI
jquast Oct 2, 2015
143f154
static analysis: ignore PYR15
jquast Oct 2, 2015
11d5c62
note about --looponfail
jquast Oct 2, 2015
8b39cc6
use SVG versions of some badges
jquast Oct 2, 2015
938e136
workaround: provide ``sc`` and ``rc`` for 'ansi'
jquast Oct 2, 2015
d39cf30
spellfix alt, remove license badge, times out
jquast Oct 2, 2015
8d248fc
about fork in intro.rst
jquast Oct 2, 2015
3a21689
fix coverage, add TEST_QUICK and TEST_FULL.
jquast Oct 3, 2015
c6433fd
user servercentral for travis IRC notify
jquast Oct 3, 2015
53656e2
Merge pull request #55 from jquast/release-1910-readyness
jquast Oct 3, 2015
fcb34a2
don't append history to long_description
jquast Oct 3, 2015
b59b4ae
track requirements as files, esp. for readthedocs.org
jquast Oct 3, 2015
5e5f88f
travis-ci's pip has no --requirement, only -r
jquast Oct 3, 2015
d878b59
Resolve code coverage across build chains
jquast Oct 3, 2015
fd3875e
Fix prospector complains
Oct 9, 2015
cbbd224
Merge pull request #57 from signalpillar/fix_prospector_complains
jquast Oct 9, 2015
e6414a5
pytest: +norecursedirs = .git for faster launches
jquast Oct 9, 2015
ffa3357
Merge remote-tracking branch 'origin/master' into remove-esc-delay
jquast Oct 9, 2015
975bcc4
add display-{fpathconf,maxcanon}.py from pexpect
jquast Oct 9, 2015
f2ae1ba
Document OS and python version requirements
jquast Oct 10, 2015
4de9ef7
bugfix: ensure COVERALLS_REPO_TOKEN is passthru
jquast Oct 10, 2015
19c9be0
Merge pull request #63 from jquast/about-extension
jquast Oct 10, 2015
2916bd9
Merge remote-tracking branch 'origin/master' into remove-esc-delay
jquast Oct 10, 2015
ab61b58
rename 'keyboard.prefixes' => get_leading_prefixes
jquast Oct 10, 2015
c03c1a2
advance version to 1.11.0 and set changelog
jquast Oct 10, 2015
1a5f8e7
Merge pull request #62 from jquast/remove-esc-delay
jquast Oct 10, 2015
6512d9e
introduce init_subproc_coverage() function
jquast Oct 10, 2015
26fdc2c
do not notify irc from travis-ci any longer
jquast Oct 10, 2015
2deda5b
Merge pull request #64 from jquast/coverage-subproces
jquast Oct 10, 2015
ed420d5
no coverage for (rare!) timeout-after-interrupt
jquast Oct 10, 2015
d6f9159
Migrate Jim Allman's nested styling enhancement
jquast Oct 10, 2015
25a9b08
bugfix url for blessed's setup() call
jquast Oct 10, 2015
35faa42
tox.ini: Use pytest -- -x unless -- is specified
jquast Oct 10, 2015
470d07e
Merge pull request #68 from jquast/tox--pytest--x-posargs
jquast Oct 10, 2015
d96ed0b
include all requirements files
jquast Oct 10, 2015
78f93bf
Merge branch 'master' of github.com:jquast/blessed
jquast Oct 10, 2015
314b395
sphinx nit: prefer ':arg' over ':param'
jquast Oct 11, 2015
d1f8639
spellfix comment excersize -> exercise
jquast Oct 11, 2015
25ff2af
Merge pull request #70 from jquast/various-docfix
jquast Oct 11, 2015
a31ca31
use newstyle formatting (drop %s, etc.)
jquast Oct 11, 2015
9da73f8
fix format specifier
jquast Oct 11, 2015
98632e3
amend a 3rd time
jquast Oct 11, 2015
4230af3
RuntimeWarning -> UserWarning
jquast Oct 11, 2015
ad27861
revert to previous exact spacing (test enforced)
jquast Oct 11, 2015
bd351f1
use 'COVERAGE_ID' env variable for combining
jquast Oct 11, 2015
f5d0427
use new-style format, CI combining environment
jquast Oct 11, 2015
05a53c6
prevent coverage.misc.NoSource exception thrown
jquast Oct 11, 2015
e9ad7b8
add Terminal.get_location() method
jquast Oct 13, 2015
6670d4e
bugfix hyperlink rst url
jquast Oct 13, 2015
6e0f653
correct change log
jquast Oct 13, 2015
549234a
chmod +x bin/detect-multibyte.py
jquast Oct 14, 2015
674e990
ensure 'six' module is provided in deps=
jquast Oct 14, 2015
d0e2e42
bugfix last commit
jquast Oct 14, 2015
6c36099
use svg and https for teamcity badge
jquast Oct 14, 2015
143a8d2
polish contributing file
jquast Oct 16, 2015
ea3bb3b
fix copied docs and grammar
thomasballinger Oct 24, 2015
99aee90
Merge pull request #75 from thomasballinger/fix-contrib-docs
jquast Oct 24, 2015
53d4e27
change docstring param name to name used in code
thomasballinger Oct 24, 2015
18e1d00
Merge pull request #76 from thomasballinger/fix-build-numeric-sequenc…
jquast Oct 24, 2015
98dcc30
iter_parse
thomasballinger Oct 24, 2015
c8b47be
remove debugging assert
thomasballinger Oct 26, 2015
80fd8a0
Minor docfix about a (tough!) challenge
jquast Oct 28, 2015
0928a0a
make sure travis-ci build points to master
jquast Oct 28, 2015
1cd6378
small changes
thomasballinger Oct 30, 2015
71bfe31
fix formating issues
thomasballinger Oct 30, 2015
6669fa3
Merge remote-tracking branch 'origin/master' into iter_parse_jq
jquast Oct 30, 2015
af1df26
terminal capability database builder
jquast Nov 1, 2015
1b5fbfd
sphinx builds using 3.5, posargs
jquast Nov 1, 2015
788ff56
remove old comments, duplicated by docstring
jquast Nov 1, 2015
5f3cbea
remove api docs for removed private functions
jquast Nov 1, 2015
0bbb0e5
do not test about emission of binack warnings
jquast Nov 1, 2015
eb481cd
temporarily disable measure_length
jquast Nov 1, 2015
db83681
reduce complexity of capability pattern code
jquast Nov 1, 2015
7c97526
Merge remote-tracking branch 'origin/master' into iter_parse
jquast Nov 1, 2015
39a4a4f
remove more _binterms code
jquast Nov 1, 2015
6dcd040
Revert "remove more _binterms code"
jquast Nov 1, 2015
2e486e3
remove more _binterms code
jquast Nov 1, 2015
5443ea7
reduce grouped numerics except where used
jquast Nov 1, 2015
279d2f6
static analysis, remove term.iter_parse
jquast Nov 1, 2015
5ffcd51
test python2.6 where available
jquast Nov 1, 2015
ffd03f7
comment fix, done for now.
jquast Nov 1, 2015
f4e71f1
do python2.6 tests quicker!
jquast Nov 1, 2015
6765f4b
make landscape.io happy about some pylint nits
jquast Nov 1, 2015
1033db9
Merge remote-tracking branch 'upstream/iter_parse_jq' into merged
thomasballinger Nov 2, 2015
fcec04e
fix double word
thomasballinger Nov 3, 2015
ace9f31
Merge pull request #82 from jquast/doc-fix
jquast Nov 3, 2015
e8b8b1a
re-introduce measure_length (deprecated)
jquast Nov 8, 2015
47dbb50
prepare for next release, including split_seqs
jquast Nov 8, 2015
9a4dd1a
link github issue and make py2-compatable test
jquast Nov 8, 2015
f347bfe
use **kwds to avoid py2/3 compat in re.split
jquast Nov 8, 2015
0484c46
appease quantifiedcode
jquast Nov 8, 2015
d5d2bb3
Merge pull request #78 from jquast/iter_parse
jquast Nov 8, 2015
1ec23b9
allow 'iter_parse' from "import *" phrase
jquast Nov 8, 2015
e63b856
bugfix line wrapping behaviour in multiline strings
jquast Nov 8, 2015
78f4cf9
gramfix
jquast Nov 8, 2015
f759105
Merge pull request #83 from jquast/bugfix-multiline-wrap
jquast Nov 8, 2015
491e6b3
doesn't work, del
jquast Nov 8, 2015
080e1b2
bugfix lint exclude 'start-args' => 'star-args'
jquast Nov 9, 2015
92ae846
bugfix .. warning sphinx indentation
jquast Nov 9, 2015
39268f7
sphinx link to Terminal.wrap method
jquast Nov 9, 2015
9a305e8
"Return a context manager" => "Context manager"
jquast Nov 30, 2015
c4aa93f
Fixing https://github.com/jquast/blessed/issues/84
croepha Dec 21, 2015
bbde611
Fixing code quality issue, line length
croepha Dec 21, 2015
7eaaded
Merge pull request #85 from croepha/master
jquast Dec 21, 2015
d834ec2
Merge remote-tracking branch 'origin/master' into bugfix-release
jquast Dec 21, 2015
09e332a
update static analysis exclusions
jquast Dec 21, 2015
dd4dc98
satisfy static analysis about order of equality
jquast Dec 21, 2015
d98460b
use flake8, not frosted
jquast Dec 21, 2015
d660ca4
use py3.5 for static analysis, bump ver
jquast Dec 21, 2015
ed6b217
fix length() docstring indentation
jquast Dec 21, 2015
dd0b723
satisfy static analysis
jquast Dec 21, 2015
66030e7
include .coveragerc
jquast Dec 21, 2015
5d14dbe
note about TypeError fix
jquast Dec 21, 2015
34216d1
line too long after indentation
jquast Dec 21, 2015
c4b99ea
bugfix hexidecimal display values under 10
jquast Dec 21, 2015
09b51db
italicize *Blessed* in intro
jquast Dec 21, 2015
3c8c39f
Merge pull request #86 from jquast/bugfix-release
jquast Dec 21, 2015
51b87a4
Merge remote-tracking branch 'origin/master'
jquast Dec 21, 2015
9a4ee62
add missing test assertions!
jquast Dec 21, 2015
b3d2537
Merge remote-tracking branch 'origin/master'
jquast Dec 21, 2015
13e215a
spellfix horizontal/vertical, change phrasing
jquast Mar 6, 2016
0427875
reference rubout, '\b \b'
jquast Feb 8, 2017
17f2f6d
docfix "raw" mode, more comprehendible
jquast Feb 8, 2017
b95b9f1
we can recommend raw mode, with caveats described
jquast Feb 8, 2017
f249a2c
Detect \x1b[0K and \x1b[2K for measuring width, define __version__ (#96)
jquast Mar 24, 2017
106bcea
Update intro.rst to enable syntax highlighting
dflock Jun 6, 2017
18eb435
Merge pull request #98 from dflock/patch-1
jquast Jun 6, 2017
ca59bbc
Add support for Python 3.7
avylove May 23, 2018
042573d
Workaround for https://github.com/travis-ci/travis-ci/issues/8363
avylove May 23, 2018
279b427
Pass TRAVIS envvar to tox
avylove May 23, 2018
42ee7d6
Fix issues with static analysis
avylove May 23, 2018
465f384
Temporarily disable display-maxcanon.py in tox
avylove May 23, 2018
f59e536
remove timing tests for folks
Jun 20, 2018
a744a42
disabling useful tests make non-contributors happy
Jun 20, 2018
524f512
Merge remote-tracking branch 'avylove/master' into fornext-release
Jun 20, 2018
da48e31
small docfix
Jun 20, 2018
dfec556
Merge pull request #104 from jquast/fornext-release
jquast Jun 20, 2018
40ddb1f
remove teamcity badge
Jun 20, 2018
c46644c
Update travis-ci config
avylove Aug 27, 2019
76a54d3
Explicit string conversion
avylove Aug 27, 2019
aa94e01
Check error value
avylove Aug 27, 2019
0caa675
replace imp.reload with six.moves.reload_module
avylove Aug 27, 2019
5aa64ff
remove coverage combine
avylove Aug 27, 2019
d1bf75f
Use 3.7 for general tests
avylove Aug 27, 2019
7fd6255
Use sphinx.util.logging
avylove Aug 27, 2019
49c83df
Fixes for linting
avylove Aug 27, 2019
3d90991
Merge pull request #108 from avylove/cleanup
jquast Sep 23, 2019
9579f0e
earmark 1.1.15 for patch release
Sep 23, 2019
bd47e20
Add support for Windows
avylove Sep 23, 2019
4af6579
Catch additional exceptions for Win size
avylove Oct 1, 2019
0dade64
Use PIP 508 dependencies
avylove Oct 16, 2019
c71ce07
v1.16 for release
Oct 18, 2019
4d86380
More notes about windows support
Oct 18, 2019
5bd9dbb
doctouch
Oct 18, 2019
021900c
Can't use :ghuser: in README grr
Oct 18, 2019
513d6b4
Better handling of unsupported terminals
avylove Oct 21, 2019
f4c8434
Don't set locale for Python 2 on Windows
avylove Oct 21, 2019
2d23d05
Add .vscode to .gitignore
avylove Oct 21, 2019
5b2da15
Minor formatting for linting
avylove Oct 21, 2019
cb0add1
Merge pull request #112 from avylove/win_tweaks
jquast Oct 22, 2019
0af50bf
bump for minor release
Oct 22, 2019
a7f86eb
Add color dictionaries and translator
avylove Dec 9, 2019
8348f1a
Add truecolor detection
avylove Dec 9, 2019
fe20a7d
Map key (127) to Backspace
jwezel Jan 6, 2020
0783df0
Change key name for (127) to BACKSPACE
jwezel Jan 6, 2020
4d884b7
initializing multi-dimensional lists
Jan 10, 2020
83fbabf
allocating hash heaps
Jan 10, 2020
449f7d6
add color_rgb and on_color_rgb(), and bin/plasma.py demo
Jan 11, 2020
7478243
add bin/plasma.py
Jan 11, 2020
54f0e56
Merge pull request #115 from jwezel/master
jquast Jan 11, 2020
11bc753
doc about backspace <- delete
Jan 11, 2020
430b9f5
Additional color algorithms
avylove Jan 11, 2020
80ca7c3
Add colorchart.py
avylove Jan 11, 2020
a903060
Merge branch 'color' of github.com:jquast/blessed into color
Jan 11, 2020
8c86546
Merge remote-tracking branch 'origin/master' into color
Jan 11, 2020
14ba720
move rgb_downcovert to Terminal method
Jan 11, 2020
772b5d9
make color_distance_algorithm a setter
Jan 12, 2020
b736521
small bugfix in example
Jan 12, 2020
614a962
remove _inject_curses_keynames()
Jan 12, 2020
22d055d
Merge remote-tracking branch 'origin/color'
Jan 12, 2020
595c883
2.0 version
Jan 12, 2020
367e25c
yar
Jan 12, 2020
115d46a
hide real cursor in picker, use fullscreen
Jan 12, 2020
3c443a2
remove that awful curses injection, polish changes
Jan 12, 2020
8c2b393
closes #59 use devnull for open descriptor
Jan 12, 2020
2165c1e
Remove this legacy exception Closes #69
Jan 12, 2020
d7c3d52
legacy fix utf8 in here
Jan 12, 2020
dda4d1d
Account for duplicates in x11_colorpicker
avylove Jan 12, 2020
9bc416f
Add CIE2000 color distance algorithm
avylove Jan 12, 2020
fed09ec
Enhance badges
avylove Jan 12, 2020
d0810eb
Account for %i in cursor_report (#94)
avylove Jan 12, 2020
031e707
Bugfix split_seqs() for color256 (#101)
avylove Jan 12, 2020
64a83e7
Add limited caching for color distance
avylove Jan 12, 2020
9133e78
Update travis to test on 3.8 and 3.9-dev
avylove Jan 12, 2020
59d2029
Fix Travis SA and Sphinx interpretor
avylove Jan 12, 2020
a9fe256
Blessed-specific enhancements #117
avylove Jan 13, 2020
5f6d3cf
Remove _inject_curses_keynames from docs
avylove Jan 14, 2020
72e648a
Remove subscript and superscript from tests
avylove Jan 14, 2020
95ed5ad
Explicity set junit_family for pytest
avylove Jan 14, 2020
57eddf7
Update keycode test
avylove Jan 14, 2020
0e9f056
FOSS gardening by tox.ini updates (#119)
jquast Jan 16, 2020
557b108
doc #94 and #101 fixes by @avylove
Jan 16, 2020
7ea7bba
Robot code cleanup: module import order (#120)
jquast Jan 16, 2020
42eebec
tox -e autopep8 results
Jan 16, 2020
e29e393
tox -e docformatter result
Jan 16, 2020
91f2485
tox -eflake8, flake8_tests
Jan 16, 2020
ec55521
fix coverage, remove deprecated _intr_continue
Jan 16, 2020
1db03ae
Improve usability of colorchart.py
avylove Jan 17, 2020
09ebe5f
Run terminal tests on Windows 10 using Travis-CI (#123)
jquast Jan 17, 2020
8ee991a
Bring back some oldies, use new coverage service (#124)
jquast Jan 17, 2020
f056067
missed this small coveralls leftover
jquast Jan 17, 2020
df6304d
oh
jquast Jan 17, 2020
690f9ca
Remove _intr_continue in inkey(), also
jquast Jan 17, 2020
36db940
coerce windows away from importing pty
jquast Jan 17, 2020
b54acaa
help readthedocs.org process our tox.ini req's
jquast Jan 17, 2020
b43e744
Move tests blessed/tests -> tests (#125)
jquast Jan 17, 2020
08f4a9f
Convert ReST refs to http refs for Readme
avylove Jan 17, 2020
19c213e
Set doc8 max-line-length
avylove Jan 17, 2020
96923a6
Add documentation link to PyPI
avylove Jan 17, 2020
80990c7
blessed/tests -> tests/ (#127)
jquast Jan 17, 2020
56e1ede
More windows test support, Closes issue #122 (#128)
jquast Jan 17, 2020
8e07054
bugfix: ValueError: underlying buffer has been detached (#129)
jquast Jan 17, 2020
a5600ee
setting inverse structures
jquast Jan 17, 2020
19b4b0b
flattening module stackframes
jquast Jan 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
root = true

[*.json]
charset = utf-8
tab_width = 4
indent_size = tab
indent_space = space
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
charset = utf-8
tab_width = 4
indent_size = tab
indent_space = space
trim_trailing_whitespace = true
insert_final_newline = true
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
.coverage
._coverage.*
.coverage.*
.cache
.tox
*.egg-info
*.egg
*.pyc
results*.xml
build
dist
docs/_build
docs/_build
htmlcov
.coveralls.yml
.DS_Store
.*.sw?
.vscode
.python-version
100 changes: 100 additions & 0 deletions .landscape.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
inherits:
- strictness_veryhigh

ignore-patterns:
- (^|/)\..+
- ^docs/
- ^build/
# ignore these, their quality does not so much matter.
- ^blessed/tests/
- ^tools/

test-warnings: true

output-format: grouped

dodgy:
# Looks at Python code to search for things which look "dodgy"
# such as passwords or git conflict artifacts
run: true

pyflakes:
# preferring 'frosted' instead (a fork of)
run: true
disable:
# Terminal imported but unused (false)
- 'E101'

frosted:
run: false

mccabe:
# complexity checking. We know of only one offense of the
# default of 10, which is Terminal.inkey() at exactly 10.
# It is not easily avoided, likely removing deprecation
# warnings in a future release will help reduce it.
run: false
options:
max-complexity: 11

pep257:
# docstring checking
run: true
disable:
# 1 blank line required before class docstring
- 'D203'
# 1 blank line required after class docstring
- 'D204'
# Multi-line docstring summary should start at the first line
- 'D212'
# First line should be in imperative mood
- 'D401'

pep8:
# style checking
run: true

pylint:
# static analysis and then some
run: true
options:
# pytest module has dynamically assigned functions,
# raising errors such as: E1101: Module 'pytest' has
# no 'mark' member
ignored-classes: pytest
# List of builtins function names that should not be used, separated by a comma
# bad-functions=map,filter,input
bad-functions: input
persistent: no
# 'ks' is often-cited variable representing Keystroke instance.
# 'fd' is a common shorthand term for file descriptor (as int).
good-names: _,ks,fd


disable:
- protected-access
- too-few-public-methods
- star-args
- wrong-import-order
- wrong-import-position
- ungrouped-imports
- useless-object-inheritance

pyroma:
# checks setup.py
run: true
disable:
# > Setuptools and Distribute support running tests. By specifying a test
# > suite, it's easy to find and run tests both for automated tools and humans.
#
# https://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands
# > Most often it is better to use tox instead
#
# we agree.
- 'PYR15'

vulture:
# this tool does a good job of finding unused code.
run: false

# vim: noai:ts=4:sw=4
48 changes: 48 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[MASTER]
load-plugins=
pylint.extensions.mccabe,
pylint.extensions.check_elif,
pylint.extensions.docparams,
pylint.extensions.overlapping_exceptions,
pylint.extensions.redefined_variable_type

persistent = no
jobs = 0
unsafe-load-any-extension = yes

[MESSAGES CONTROL]
disable=
I,
fixme,
c-extension-no-member,
ungrouped-imports

[FORMAT]
max-line-length: 100
good-names=ks,fd,_

[PARAMETER_DOCUMENTATION]
default-docstring-type=sphinx
accept-no-raise-doc=no
accept-no-param-doc=yes
accept-no-return-doc=yes

[DESIGN]
max-args=10
max-attributes=7
max-branches=12
max-complexity=11
max-locals=15
max-module-lines=1300
max-parents=7
max-public-methods=20
max-returns=6
max-statements=50

[SIMILARITIES]
ignore-imports=yes
min-similarity-lines=8

[REPORTS]
reports=no
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
53 changes: 41 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,46 @@
language: python

python:
- 2.6
- 2.7
- 3.2
- pypy

matrix:
fast_finish: true
include:
- python: 2.7
env: TOXENV=py27,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.4
env: TOXENV=py34,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.5
env: TOXENV=py35,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.6
env: TOXENV=py36,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.7
env: TOXENV=py37,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.8
env: TOXENV=py38,codecov COVERAGE_ID=travis-ci
- python: 3.9-dev
env: TOXENV=py39,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- python: 3.8
env: TOXENV=about,pylint,flake8,flake8_tests,sphinx COVERAGE_ID=travis-ci
- python: 3.8
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- python -m pip install --upgrade pip
- python -m pip install tox
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH TOXENV=py38,codecov COVERAGE_ID=travis-ci TEST_KEYBOARD=no

jobs:
allow_failures:
- python: 3.2 # Not a new enough 3.2 for blessings
- python: pypy # PyPy doesn't have _curses.
- env: TOXENV=py39,codecov TEST_QUICK=1 COVERAGE_ID=travis-ci
- env: TOXENV=about,pylint,flake8,flake8_tests,sphinx COVERAGE_ID=travis-ci

install:
- pip install tox
script:
- pip install -q --use-mirrors nose
- python setup.py install
- nosetests -w /tmp blessings.tests
- tox
sudo: false

notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: change
47 changes: 47 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Contributing
============

We welcome contributions via GitHub pull requests:

- `Fork a Repo <https://help.github.com/articles/fork-a-repo/>`_
- `Creating a pull request
<https://help.github.com/articles/creating-a-pull-request/>`_

Developing
----------

Prepare a developer environment. Then, from the blessed code folder::

pip install --editable .

Any changes made in this project folder are then made available to the python
interpreter as the 'blessed' package from any working directory.

Running Tests
~~~~~~~~~~~~~

Install and run tox

::

pip install --upgrade tox
tox

Py.test is used as the test runner, supporting positional arguments, you may
for example use `looponfailing
<https://pytest.org/latest/xdist.html#running-tests-in-looponfailing-mode>`_
with python 3.5, stopping at the first failing test case, and looping
(retrying) after a filesystem save is detected::

tox -epy35 -- -fx

The test runner (``tox``) ensures all code and documentation complies with
standard python style guides, pep8 and pep257, as well as various static
analysis tools.

Test Coverage
~~~~~~~~~~~~~

When you contribute a new feature, make sure it is covered by tests.

Likewise, a bug fix should include a test demonstrating the bug.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Copyright (c) 2014 Jeff Quast
Copyright (c) 2011 Erik Rose

Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
include README.rst
include docs/*.rst
include LICENSE
include version.json
include *.txt
include tox.ini
recursive-include tests *.py *.ans
Loading