Skip to content

Commit

Permalink
Add lambda lint (#10)
Browse files Browse the repository at this point in the history
* Add lambda lint

* Organize dependencies

* Enforce line lenght and bandit excluded folders

* Blacking it :)

* Add Black to tox

* Update CHANGELOG
  • Loading branch information
anapaulagomes authored Jul 13, 2018
1 parent 0b6b933 commit a6de106
Show file tree
Hide file tree
Showing 12 changed files with 113 additions and 355 deletions.
2 changes: 2 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bandit]
exclude: tests,docs
3 changes: 3 additions & 0 deletions .checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- flake8
- pyflakes
- bandit
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
exclude = .git,__pycache__,docs/conf.py,build,dist
max-line-length = 80
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
rev: stable
hooks:
- id: black
args: [--safe]
args: [--check --line-length 80]
python_version: python3.6
- repo: [email protected]:pre-commit/pre-commit-hooks
rev: v1.2.3
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ matrix:
env: TOX_ENV=py35
- python: 3.6
env: TOX_ENV=py36
- python: 3.6
env: TOX_ENV=flake8

install:
- pip install tox
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
### Added
- Filter tests according with pytest file convention
- Only collects the tests from `git status`
- LambdaLint with Pylint and Bandit and Black in Tox

## [0.1.0] - 2018-05-24
### Added
Expand Down
5 changes: 4 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ verify_ssl = true
name = "pypi"

[packages]
sphinx = "*"

[dev-packages]
pre-commit = "*"
tox = "*"
black = "*"
isort = "*"
pylint = "*"
sphinx = "*"
bandit = "*"
pyflakes = "*"
flake8 = "*"
257 changes: 0 additions & 257 deletions Pipfile.lock

This file was deleted.

Loading

0 comments on commit a6de106

Please sign in to comment.