Skip to content

Commit

Permalink
Add flake8 and pylint to development install extras
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Sep 16, 2019
1 parent ee6df65 commit a8482f0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[MASTER]
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=lkft

[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=duplicate-code

[REPORTS]
# Activate the evaluation score.
score=no
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ or a directory path:
pip3 install --user .

If you want to hack on the source code, install the package in the editable
mode with the `-e/--editable` option. E.g.:
mode with the `-e/--editable` option, and with "dev" extra included. E.g.:

pip3 install --user --editable .
pip3 install --user --editable '.[dev]'

The latter installs kcidb executables which use the modules from the source
directory, and changes to them will be reflected immediately without the need
to reinstall.
to reinstall. It also installs extra development tools, such as `flake8` and
`pylint`.

In any case, make sure your PATH includes the `~/.local/bin` directory, e.g.
with:
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"google-cloud-bigquery",
"jsonschema",
],
extras_require=dict(
dev=[
"flake8",
"pylint",
],
),
entry_points=dict(
console_scripts=[
"kcidb-init = kcidb.init_cmd:main",
Expand Down

0 comments on commit a8482f0

Please sign in to comment.