Browse Source

Added patch, fixed minor documentation

Vividha 3 years ago
parent
commit
714f0f1a5a
3 changed files with 5 additions and 3 deletions
  1. 1 1
      .pre-commit-config.yaml
  2. 1 1
      docs/development_env.md
  3. 3 1
      setup.py

+ 1 - 1
.pre-commit-config.yaml

@@ -11,4 +11,4 @@ repos:
     hooks:
       - id: pylint
         args:
-          - "howdoi *.py --rcfile=.pylintrc"
+          - "howdoi *.py --rcfile=.pylintrc"

+ 1 - 1
docs/development_env.md

@@ -16,7 +16,7 @@
 - Install all the required packages:
 
   ```
-  $ pip install -r requirements.txt
+  $ pip install -r requirements/dev.txt
   ```
 
 - Running from command line :

+ 3 - 1
setup.py

@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+import glob
 import subprocess
 from pathlib import Path
 from distutils.cmd import Command
@@ -23,8 +24,9 @@ class Lint(Command):
         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: