Mike McLean
d0e90d3687
fix errors in channel policy
...
Fixes: https://pagure.io/koji/issue/4065
2024-04-24 15:00:45 +02:00
Tomas Kopecek
2013692fc9
New scmpolicy plugin
...
Plugin for scm policy using data from SCM checkout.
Related: https://pagure.io/koji/issue/3968
2024-02-09 14:47:37 +01:00
Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b
flake8: apply E2 rules except E266
2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf
flake8: follow E265 rule
2020-03-03 21:35:08 +08:00
Tomas Kopecek
f9190657d9
Add 'target' policy
...
Fixes: https://pagure.io/koji/issue/1040
2020-02-11 14:30:25 +01:00
Yu Ming Zhu
4d29a87e9b
sort imports in koji
2019-12-12 11:00:57 +00:00
Tomas Kopecek
8370a8e0ad
don't fail on missing field in base policy tests
...
Fixes: https://pagure.io/koji/issue/1038
2018-11-28 09:01:20 +01:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
Tomas Kopecek
bcee24e50c
python-modernize -f libmodernize.fixes.fix_dict_six
2018-07-11 17:37:39 -04:00
Mike McLean
9bcce9dc3e
pull in core volume policy functions from earlier branches
2017-10-06 17:16:03 -04:00
Tomas Kopecek
93034f64f3
idioms
2017-03-17 11:35:53 -04:00
Tomas Kopecek
22bedc900d
whitespace formatting
2017-03-17 11:35:53 -04:00
Tomas Kopecek
1494301465
use new exception syntax
2017-03-02 10:52:30 -05:00
Mike McLean
47ec115355
More policy tests -- 100% coverage for policy.py
2016-10-25 17:16:12 -04:00
Mohan Boddu
dd82e9cea2
Remove all bad-whitespaces
...
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2016-08-29 14:26:32 -04:00
Pavol Babincak
9e89ebb9a4
Ran reindent.py from cpython tools on all python scripts
...
Citing from reindent docs:
Change Python (.py) files to use 4-space indents and no hard tab
characters. Also trim excess spaces and tabs from ends of lines, and
remove empty lines at the end of files. Also ensure the last line
ends with a newline.
Citing from PEP 8:
Use 4 spaces per indentation level.
Python 2 code indented with a mixture of tabs and spaces should be
converted to using spaces exclusively.
Don't write string literals that rely on significant trailing
whitespace. Such trailing whitespace is visually indistinguishable
and some editors (or more recently, reindent.py) will trim them.
Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0
update copyright
2014-10-28 23:54:21 -04:00
Mike McLean
bfbc01c1b8
fix HasTest
2010-06-29 17:03:36 -04:00
Mike McLean
159ba82013
channel policy to determine which channel a task is placed in
2010-05-26 15:19:13 -04:00
Mike McLean
59bde48e43
package list policy
2010-03-09 16:03:59 -05:00
Mike McLean
d029e1c276
enable verbose policy errors without full debug
2008-11-13 01:16:42 -05:00
Mike McLean
d513993049
add tests 'all' and 'none' (aliases for true and false)
2008-11-03 17:20:43 -05:00
Mike McLean
86e63c5de1
policy framework and tagging policies
2008-10-27 14:00:58 -04:00