TechDebt: simplify list of excluded directories in bashate tox
Bug #1462801 reported by
Steven Dake
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Invalid
|
Low
|
Unassigned |
Bug Description
In tox.ini there is a command:
bash -c "files=`egrep -rlI --exclude-dir .git --exclude-dir .tox '^[[:punct:
env )(ba)?sh' .` && bashate $files"
It would be ideal if tox.ini could instead take something like
--exclude-
But this results in errors. Escaping with --exclude-
The error is:
"substitution key %r not found" % key)
tox.ConfigError: ConfigError: substitution key '.git,.tox\\' not found
Changed in kolla: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in kolla: | |
milestone: | none → liberty-rc1 |
Changed in kolla: | |
milestone: | liberty-rc1 → liberty-rc2 |
Changed in kolla: | |
milestone: | liberty-rc2 → liberty-rc3 |
Changed in kolla: | |
assignee: | nobody → Michal Rostecki (mrostecki) |
Changed in kolla: | |
milestone: | liberty-rc3 → mitaka-1 |
Changed in kolla: | |
assignee: | Michal Rostecki (mrostecki) → nobody |
Changed in kolla: | |
assignee: | nobody → Maciej Szankin (mszankin) |
Changed in kolla: | |
milestone: | mitaka-1 → mitaka-2 |
Changed in kolla: | |
milestone: | mitaka-2 → mitaka-3 |
Changed in kolla: | |
milestone: | mitaka-3 → mitaka-rc1 |
Changed in kolla: | |
milestone: | mitaka-rc1 → mitaka-rc2 |
Changed in kolla: | |
assignee: | Maciej Szankin (mszankin) → nobody |
Changed in kolla: | |
milestone: | newton-1 → newton-2 |
Changed in kolla: | |
milestone: | newton-2 → newton-3 |
Changed in kolla: | |
milestone: | newton-3 → occata-1 |
Changed in kolla: | |
milestone: | ocata-1 → ocata-2 |
Changed in kolla: | |
milestone: | ocata-2 → ocata-3 |
To post a comment you must log in.
I had difficulty using tox for regex quantifiers, which also uses brackets {}. Surely some form of escaping works though.