Itamar Turner-Trauring
4711c9fda3
More flake fixes.
2021-05-07 09:44:44 -04:00
Jean-Paul Calderone
e6a09fa444
Don't check check-debugging.py
2020-11-27 16:28:23 -05:00
tpltnt
c8f11dc2d3
ported old-style classes to new-style
2019-05-26 08:28:18 +02:00
heartsucker
0750dbac38
updated all python files to use pep-3110 exception syntax for python3 compatibility
2019-04-04 11:57:58 +02:00
heartsucker
dbfcf8ae00
replaced StringIO imports with six.moves
2019-03-28 12:31:37 +01:00
heartsucker
55f8408718
use print function over print statement in ./misc/ directory
2019-03-22 11:41:16 +01:00
Jean-Paul Calderone
206ab732e6
Replace use of deprecated sha module
2018-04-26 15:00:36 -04:00
Brian Warner
5e62118e14
hush somewhat-real problems found by static analysis
...
These would have caused problems if a certain unlikely code path was taken:
mostly error-handling pathways.
2017-12-31 00:23:43 +01:00
Brian Warner
36c57c74f4
make tox env for code-checks
...
This executes: check-debugging, check-interfaces, check-miscaptures,
find-trailing-spaces, check-umids, pyflakes.
Other changes:
* fix check-umids.py to take starting points. run it as `check-umids.py
src` instead of `check-umids.py src/allmydata/*.py`
* check-debugging: rewrite in python to run from tox: tox doesn't like
to run shell scripts.
* put check-interfaces.py last: it produces lots of warnings, but passes
anyways. The others only produce significant output if they fail.
2016-08-19 17:42:05 -07:00
meejah
d641aef2a3
Simple test for defer.setDebugging(True) calls
2016-08-19 11:37:15 -06:00
Brian Warner
c545d5c0a1
add misc/coding_tools/graph-deps.py, to visualize dependencies
...
This builds and parses wheels for a given target, then renders a
DOT-format graph into a PNG file.
2016-03-25 14:50:16 -07:00
Brian Warner
5ddbf288b8
coverage2el.py: update to current coverage-3.7.1 API
2014-09-09 09:47:13 -07:00
Daira Hopwood
4f51040313
Update coverage-related targets in Makefile. refs #1698
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-08 22:49:23 +01:00
david-sarah
28069a9641
misc/coding_tools/check-interfaces.py: clean-ups (warnings about Windows-specific modules and error stream handling).
2012-06-14 21:28:29 +00:00
david-sarah
97d6a162e0
misc/build_helpers/check-interfaces.py: avoid spurious warnings about ignored exceptions on shutdown. Also make the check function able to write errors to an arbitrary stream.
2012-05-18 02:12:52 +00:00
david-sarah
4d6260d6ad
check-miscaptures.py: report the number of files that were not analysed due to syntax errors (and don't count them in the number of suspicious captures). refs #1555
2011-10-09 05:03:01 +00:00
david-sarah
efd3c8b113
check-miscaptures.py: handle corner cases around default arguments correctly. Also make a minor optimization when there are no assigned variables to consider. refs #1555
2011-10-09 04:50:23 +00:00
david-sarah
5359c24e99
check-miscaptures.py: Python doesn't really have declarations; report the topmost assignment. refs #1555
2011-10-09 04:48:00 +00:00
david-sarah
1c6fe1d230
check-miscaptures.py: handle destructuring function arguments correctly. refs #1555
2011-10-09 04:47:10 +00:00
david-sarah
d2f3ef9714
check-miscaptures.py: check while loops and list comprehensions as well as for loops. Also fix a pyflakes warning. refs #1555
2011-10-09 04:40:22 +00:00
david-sarah
be1c94893f
Add misc/coding_tools/check-miscaptures.py to detect incorrect captures of variables declared in a for loop, and a 'make check-miscaptures' Makefile target to run it. (It is also run by 'make code-checks'.) This is a rewritten version that reports much fewer false positives, by determining captured variables more accurately. fixes #1555
2011-10-07 07:41:21 +00:00
david-sarah
bac24aee0d
Fix pyflakes warnings in misc/ directories other than misc/build_helpers. refs #1557
2011-10-07 03:30:31 +00:00
david-sarah
3142538b0d
misc/coding_tools/make-canary-files.py: fix a suspicious capture reported by check-miscaptures (although it happens not to be a bug because the callback will be processed synchronously). refs #1556
2011-10-08 22:05:31 -07:00
david-sarah
cbd0569e45
misc/check-interfaces.py: print a warning if a .pyc or .pyo file exists without a corresponding .py file.
2011-10-12 16:36:09 -07:00
david-sarah
32262239e5
misc/coding_tools/check_interfaces.py: report all violations rather than only one for a given class, by including a forked version of verifyClass. refs #1474
2011-09-16 15:34:50 -07:00
david-sarah
9ca8ff7bfc
misc/coding_tools/check_interfaces.py: use os.walk instead of FilePath, since this script shouldn't really depend on Twisted. refs #1474
2011-09-16 14:26:33 -07:00
david-sarah
f1445ce0b2
misc/coding_tools/check-interfaces.py: reduce false-positives by adding Dummy* to the set of excluded classnames, and bench-* to the set of excluded basenames. refs #1474
2011-09-16 14:26:24 -07:00
david-sarah
417054aaba
Add a script 'misc/coding_tools/check-interfaces.py' that checks whether zope interfaces are enforced. Also add 'check-interfaces', 'version-and-path', and 'code-checks' targets to the Makefile. fixes #1474
2011-09-15 09:15:32 -07:00
Brian Warner
1f0e2574cc
update Makefile and coverage2el.py to coverage-3.4
...
It might still work with coverage-3.3 if you run with COVERAGE_OMIT=""
2010-11-25 12:38:32 -08:00
david-sarah
cd8d41584e
test_storage.py: change skip note for test_large_share to say that Windows doesn't support sparse files. refs #569
2010-08-04 19:26:12 -07:00
Brian Warner
cd360c847c
check-umids: oops, forgot to add the tool
2010-08-04 00:17:13 -07:00
Brian Warner
818089644a
coverage tools: ignore errors, display lines-uncovered in elisp mode. Fix Makefile paths.
2010-08-04 00:11:31 -07:00
Zooko O'Whielacronx
1fc6be28f4
setup: organize misc/ scripts and tools and remove obsolete ones
...
This is for ticket #1068 .
2010-06-06 22:16:18 -07:00