Skip to content

Commit

Permalink
Added patch, fixed minor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
V2dha committed Oct 23, 2021
1 parent 6a751ce commit 714f0f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ repos:
hooks:
- id: pylint
args:
- "howdoi *.py --rcfile=.pylintrc"
- "howdoi *.py --rcfile=.pylintrc"
2 changes: 1 addition & 1 deletion docs/development_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- Install all the required packages:

```
$ pip install -r requirements.txt
$ pip install -r requirements/dev.txt
```

- Running from command line :
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python

import glob
import subprocess
from pathlib import Path
from distutils.cmd import Command
Expand All @@ -23,8 +24,9 @@ def finalize_options(self):
pass

def run(self):
local_python_files_str = ' '.join(glob.glob('*.py'))
commands = {'Flake8': 'flake8 --config=.flake8rc .'.split(),
'Pylint': 'pylint howdoi *.py --rcfile=.pylintrc'.split()}
'Pylint': f'pylint howdoi {local_python_files_str} --rcfile=.pylintrc'.split()}

for linter, command in commands.items():
try:
Expand Down

0 comments on commit 714f0f1

Please sign in to comment.