Skip to content

Commit

Permalink
Fixed --generate-config file path error (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce-8 committed Jun 22, 2023
1 parent 19536af commit eb8630d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Modified configuration behaviour so when providing a config file, it only needs to contain the configuration options you want overridden.
- Added the option `load_default_config` to `check_errors` and `check_all` to specify whether to automatically load the PythonTA default config.

### Bug Fixes

- Fixed bug where running `python3 -m python_ta --generate-config` yields a `FileNotFoundError`.

### New checkers

Pylint checkers v2.16:
Expand Down
2 changes: 1 addition & 1 deletion python_ta/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main(

# `config` is None if `-c` flag is not set
if generate_config:
pylintrc_location = os.path.join(os.path.dirname(__file__), ".pylintrc")
pylintrc_location = os.path.join(os.path.dirname(__file__), "config/.pylintrc")
with open(pylintrc_location, "r") as f:
contents = f.read()
print(contents)
Expand Down

0 comments on commit eb8630d

Please sign in to comment.