-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #268
- Loading branch information
Showing
5 changed files
with
57 additions
and
1 deletion.
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
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,6 @@ | ||
# Config File Examples | ||
|
||
This folder contains 2 example files: | ||
|
||
* `default.toml`: Config file representing the default settings used in Refurb | ||
* `reference.toml`: All of the available config file settings in Refurb |
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,11 @@ | ||
# This is a config file that emulates the default settings used by Refurb. | ||
|
||
ignore = [] | ||
load = [] | ||
disable = ["FURB106", "FURB120", "FURB137", "FURB147", "FURB151", "FURB166", "FURB172"] | ||
quiet = false | ||
enable_all = false | ||
disable_all = false | ||
python_version = "" # uses current python version | ||
format = "text" | ||
sort_by = "filename" |
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,37 @@ | ||
# This is an example config file that shows all the available configuration | ||
# options in Refurb. You probably won't need most of them, but are here for | ||
# completion. Some of these configurations conflict with one another, so only | ||
# use this file as a reference! | ||
|
||
# The following error codes are identical | ||
ignore = ["FURB100", 100] | ||
|
||
# Enable FURB100 | ||
enable = ["FURB100"] | ||
|
||
# Disable FURB100 | ||
disable = ["FURB100"] | ||
|
||
# Enable all checks (good for new codebases) | ||
enable_all = true | ||
|
||
# Disable all checks (good for incrementally adopting Refurb) | ||
disable_all = true | ||
|
||
# Disable "use --explain" error message | ||
quiet = true | ||
|
||
# Specify a specific Python version to use | ||
python_version = "3.10" | ||
|
||
format = "github" # or "text" | ||
sort_by = "filename" # or "error" | ||
|
||
# Add custom path to look for potential Refurb plugins | ||
load = ["custom_module"] | ||
|
||
|
||
# Ignore certain checks for specific folders | ||
[[tool.refurb.amend]] | ||
path = "src" | ||
ignore = ["FURB123", "FURB120"] |
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