-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle blank lines after class definition properly (#142)
* fix: no longer remove blank lines when no class docstring * test: add tests for class and blank lines
- Loading branch information
1 parent
ee4bfe3
commit 2e543b4
Showing
3 changed files
with
167 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 🪄 This is your project's Sourcery configuration file. | ||
|
||
# You can use it to get Sourcery working in the way you want, such as | ||
# ignoring specific refactorings, skipping directories in your project, | ||
# or writing custom rules. | ||
|
||
# 📚 For a complete reference to this file, see the documentation at | ||
# https://docs.sourcery.ai/Configuration/Project-Settings/ | ||
|
||
# This file was auto-generated by Sourcery on 2022-12-28 at 22:39. | ||
|
||
version: '1' # The schema version of this config file | ||
|
||
ignore: # A list of paths or files which Sourcery will ignore. | ||
- .git | ||
- venv | ||
- .venv | ||
- env | ||
- .env | ||
- .tox | ||
|
||
# rule_settings: | ||
# enable: | ||
# - default | ||
# disable: [] # A list of rule IDs Sourcery will never suggest. | ||
# rule_types: | ||
# - refactoring | ||
# - suggestion | ||
# - comment | ||
# python_version: '3.9' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version. | ||
|
||
# rules: # A list of custom rules Sourcery will include in its analysis. | ||
# - id: no-print-statements | ||
# description: Do not use print statements in the test directory. | ||
# pattern: print(...) | ||
# replacement: | ||
# condition: | ||
# explanation: | ||
# paths: | ||
# include: | ||
# - test | ||
# exclude: | ||
# - conftest.py | ||
# tests: [] | ||
# tags: [] | ||
|
||
# rule_tags: {} # Additional rule tags. | ||
|
||
# metrics: | ||
# quality_threshold: 25.0 | ||
|
||
# github: | ||
# labels: [] | ||
# ignore_labels: | ||
# - sourcery-ignore | ||
# request_review: author | ||
# sourcery_branch: sourcery/{base_branch} | ||
|
||
# clone_detection: | ||
# min_lines: 3 | ||
# min_duplicates: 2 | ||
# identical_clones_only: false | ||
|
||
# proxy: | ||
# url: | ||
# ssl_certs_file: | ||
# no_ssl_verify: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters