7 Commits

Author SHA1 Message Date
Daniel Ruf
052d863a96
codestyle: ignore rule W605 and change multiline condition to one line 2019-01-30 17:19:43 +01:00
Frank Hamand
e09ec7a15d
Merge pull request #561 from arachnys/isort-config
Add isort configuration to sort imports
2018-04-23 11:30:41 +02:00
Jean-Fred Berthelot
7baede72a6 Ignore Flake8 E722
E722 is "do not use bare except", of which we have four violations
in `models/base.py`.

Let's ignore these for now to get the build working again.
2017-11-09 15:01:38 +00:00
Jean-Fred Berthelot
7781f5c223 Add isort configuration to sort imports
isort is a Python utility to  to sort imports alphabetically,
and automatically separated into sections.

This config matches the Django coding style:
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#imports
```
Put imports in these groups: future, standard library, third-party libraries,
other Django components, local Django component, try/excepts.
```

This also adds a tox target, not yet executed by default,
which can be used to easily apply isort (`tox -e isort -- --apply`)
2017-10-17 10:50:45 +01:00
Jean-Frédéric
6a9eff8f64 Add Bash linting using bashate (#566)
bashate is "a pep8 equivalent for bash scripts" by OpenStack.
https://docs.openstack.org/bashate/latest/

- Add tox target running bashate on the entire code-base
- Fix docker-entrypoint script accordingly
2017-09-28 11:15:50 +01:00
Jean-Fred Berthelot
2258511c18 Remove deprecated Shell and Fabric scripts
We have deeply revamped the deployment process of Cabot
(docker setup and Pypi packaging) which has deprecated
the provisioning scripts and the Fabric script.

Closes #493
2017-07-05 10:33:33 +02:00
Jean-Fred Berthelot
f337b79643 Add Flake8 linting using tox
- Add tox file for linting of:
  - bash config files
  - flake8

- Mute all flake8 violations currently not passing
- Install and run tox as part of Travis build
  (inside one run because build matrix is hard)
2016-12-08 12:31:28 +00:00