Florian Bruhin
381b06e967
Fix lint
2014-09-08 07:44:32 +02:00
Florian Bruhin
d625cde28c
Clean up imports
2014-08-26 19:10:14 +02:00
Florian Bruhin
7f6b44e4b0
run_checks: Add PWD to os.path.
...
Without this change, running checkers when not running unittests failed,
because qutebrowser couldn't be imported.
2014-08-20 07:14:12 +02:00
Florian Bruhin
7512d766d4
run_checks: Colorize exit status
2014-08-14 20:58:39 +02:00
Florian Bruhin
0f1c819b89
run_checks: Add some colors
2014-08-14 20:42:11 +02:00
Florian Bruhin
cc4fd46c6f
run_checks: Refactor checks if checker is enabled.
2014-08-14 20:08:30 +02:00
Florian Bruhin
0f00ce244e
run_checks: More refactoring
2014-08-14 18:02:38 +02:00
Florian Bruhin
dbc9a53e1c
run_checks: Refactor running of checkers
2014-08-14 16:14:21 +02:00
Florian Bruhin
9281f30c7b
run_checks: Use argparse
2014-08-14 15:32:42 +02:00
Florian Bruhin
b610a968cc
run_checks: Re-enable pylint plugins.
2014-08-12 22:38:36 +02:00
Florian Bruhin
e248c53358
run_checks: Rename CONFIG to config.
2014-08-12 22:38:28 +02:00
Florian Bruhin
dc00f346f4
run_checks: Add docstring to main
2014-08-12 21:12:31 +02:00
Florian Bruhin
01ec30cda3
run_checks: Add main block
2014-08-12 18:48:31 +02:00
Florian Bruhin
2d1f84e7f0
run_checks: Always run pep257
2014-08-12 18:47:11 +02:00
Florian Bruhin
720e56cdc1
run_checks: Add configfile
2014-08-12 18:46:54 +02:00
Florian Bruhin
75b4fe9ce2
Use tokenize.open for run_checks and add note to TODO
2014-08-07 14:56:27 +02:00
Florian Bruhin
debc76ce79
run_checks: Refactor VCS commit checking.
2014-08-07 00:40:20 +02:00
Florian Bruhin
e05975aff3
Use pylint to check for set_trace calls.
2014-08-07 00:07:01 +02:00
Florian Bruhin
c7ee655750
Use pylint to check modelines and fix them.
2014-08-06 23:51:44 +02:00
Florian Bruhin
be21296b38
Use pylint for CRLF checking.
2014-08-06 21:56:10 +02:00
Florian Bruhin
2b058b36ea
Remove whitespace line ending checker (handled by pylint)
2014-08-06 21:55:43 +02:00
Florian Bruhin
1cb7b447b7
run_checks: Remove tab-space-checker
2014-08-06 21:17:06 +02:00
Florian Bruhin
eae81fa560
Cleanup
2014-08-06 14:44:00 +02:00
Florian Bruhin
2f1b92aff5
Add custom pylint checker for config.
2014-08-06 14:42:05 +02:00
Florian Bruhin
8fedf1a9be
Adjust shebangs to call python3
2014-07-31 21:14:05 +02:00
Florian Bruhin
5feee871ac
Fix lint
2014-07-07 12:00:51 +02:00
Florian Bruhin
00fb7b8f68
Don't choke on spaces in filenames in run_checks.py
2014-06-19 13:51:08 +02:00
Florian Bruhin
d65587128f
Add vim modelines to all files.
2014-06-19 09:04:37 +02:00
Florian Bruhin
6105b41342
Add shebang/GPL header to scripts
2014-06-19 08:28:05 +02:00
Florian Bruhin
2f1cd43f9c
Change lists to tuples for immutable values
2014-06-06 17:21:35 +02:00
Florian Bruhin
70575d61f9
Check for set_trace in scripts
2014-06-03 14:52:53 +02:00
Florian Bruhin
2fd57dc2e3
Add git check to run_checks
2014-05-22 15:19:35 +02:00
Florian Bruhin
ad9c1ed359
flake8: increase max complexity
2014-05-20 17:53:32 +02:00
Florian Bruhin
be446b6607
Run pyroma/check-manifest correctly in run_checks
2014-05-15 08:59:11 +02:00
Florian Bruhin
7f3a21e4f0
Fix lint in scripts
2014-05-15 08:24:10 +02:00
Florian Bruhin
5de6084e50
Don't check scripts with pyroma
2014-05-15 08:12:44 +02:00
Florian Bruhin
8aedd80d05
Ignore ez_setup.py properly
2014-05-15 08:11:11 +02:00
Florian Bruhin
a6dae83731
Run linters on scripts
2014-05-15 07:29:12 +02:00
Florian Bruhin
4a7ccbf131
Fix pyroma on Linux
2014-05-06 19:00:35 +02:00
Florian Bruhin
8010fa8d89
Add unittest to run_checks.py
2014-05-06 14:37:47 +02:00
Florian Bruhin
3753e87465
Depend on appdirs instead of bundling
2014-05-06 06:22:28 +02:00
Florian Bruhin
a4d80ddcac
Fix checks
2014-05-05 15:24:04 +02:00
Florian Bruhin
ae0966a384
Fix encoding issues on windows.
...
locale.getpreferredencoding(False) returns cp1252 on Windows, which is
unable to parse our nice unicode arrows.
Therefore, we always need to specify the encoding when using open().
Also we exclude configdata.py from pep257 on Windows because it doesn't
detect the encoding correctly... Bug is submitted:
https://github.com/GreenSteam/pep257/issues/70
2014-05-02 11:15:38 +02:00
Florian Bruhin
c5e43c1558
Add pyroma to run_checks.py
2014-04-29 08:34:49 +02:00
Florian Bruhin
9252ef94ca
Consistent string chars
2014-04-25 16:53:23 +02:00
Florian Bruhin
ae7c04f4e3
Move scripts to scripts/
2014-04-22 07:20:25 +02:00