Skip to content

Commit

Permalink
Add safety to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
myslak71 committed Aug 3, 2019
1 parent 1b9c259 commit 9c12c38
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cache: pip
install:
- pip install -r requirements-dev.txt
script:
- make safety
- make lint
- pip install .
- make unittests
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Kornel Szurek
Copyright (c) 2019 myslak71

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ lint: mypy flake8 yamllint # run all linters
mypy: ## run mypy
mypy flake8_koles

safety: ## run safety check
safety check -r requirements-dev.txt

unittests: ## run pytest with coverage and -s flag for debugging
pytest --cov=flake8_koles.checker tests/ --cov-branch

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Flake8 extension for checking bad language occurrences. Lists all swears found i
For now only english and polish languages are supported.

## Installation
flake8 is required for the installation.
flake8>3.3.0 is required for the installation.
```
pip install flake8-koles
```
Expand All @@ -37,5 +37,6 @@ flake8 --ignore-shorties 4 --censor-msg --lang=english,polish
|`make flake8`|run flake8|
|`make mypy`|run mypy|
|`make lint`|run all linters|
|`make safety`|run safety check|
|`make unittests`|run unittests with coverage report
|`make yamllint`|run yamllint|
1 change: 1 addition & 0 deletions flake8_koles/data/swear_list/polish.dat
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dopierdalający
dopierdalajacy
dopierdolić
dopierdolic
dup
dupa
dupie
dupą
Expand Down
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ coveralls==1.8.1
# Debugging
########################
pdbpp==0.10.0

# Safety check
########################
safety==1.8.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DIR_PATH = os.path.abspath(os.path.dirname(__file__))

install_requires = ['flake8>=1.5']
install_requires = ['flake8>=3.3.0']

with open(os.path.join(DIR_PATH, 'requirements-dev.txt'), encoding='utf-8') as file:
requirements_dev = [str(req) for req in parse_requirements(file.read())]
Expand Down

0 comments on commit 9c12c38

Please sign in to comment.