Comments (3)
Hi @sobolevn.
Possible Solution
Use
code in ignore
check. All instances from thetoml
file must be present.
We can have more items insetup.cfg
.@andreoliwa what do you think?
I think this is already covered...
Did you try using comma_separated_values
in your style?
https://nitpick.readthedocs.io/en/latest/setup_cfg.html#comma-separated-values
I tried here and it works.
Style:
["setup.cfg".flake8]
ignore = "D100,D104,D401,W504,RST303,RST304"
[nitpick.files."setup.cfg"]
comma_separated_values = ["flake8.ignore"]
setup.cfg
:
[flake8]
ignore = D100, D104, D401, W504, RST303, RST304
- Spacing is not important in this case
- Ordering is also not important in this case. But it is checked right now.
Right now, spacing and order are already not considered.
But Nitpick will print the suggestion list without any spaces... I can think of some configuration for this in the future.
from nitpick.
Sorry, I have missed comma_separated_values
part.
from nitpick.
No worries.
Please reopen if the problem continues.
from nitpick.
Related Issues (20)
- Improve docs for JSON files
- Move built-in styles to a separate repo to start a shared/community library of styles HOT 2
- Nitpick does not ignore comment before value of comma separated list
- Allow ignoring some deviations from nitpick style
- toml is not changed on fix on linux
- documentation should be corrected regarding the addition of styles from python packages.
- Falsy values not properly compared
- Nitpick should fail when no style is explicitly configured HOT 2
- pre-commit list keys are incomplete
- Can't configure `.flake8` comma separated value HOT 2
- Support comments in JSON configuration (aka JSONC) HOT 4
- No module named 'requests_cache.cache_control' HOT 1
- pre-commit hook should be runnable on manual hook stages HOT 3
- [docs] Explain how to make the linter know that a file is of INI format HOT 2
- [doc] Branch reference syntax is imperfect HOT 1
- contains_json with `false` doesn't work HOT 1
- Support GitHub Enterprise Server HOT 4
- Running nitpick with flakeheaven 3.2.1 results in warnings
- Pre-commit hook is incompatible with requests_cache==1.0 HOT 1
- Allow Github Apps Access Tokens in Github URLs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nitpick.