How to specify non-check target in Flake8

I don't know if there is demand, but I will write it to increase technical information in Japanese.
When using Flake8 for Python code checking, you may want to exclude files and directories from checking. How to do that.


flake8 --exclude=./env/lib/python3.8/site-packages/ .

As mentioned above, you can specify files and directories that are not checked with the "--exclude" option. By the way, the above is


--Except for the "./env/lib/python3.8/site-packages/" directory --Check the current directory (specified by "." At the end)


It means that.
## reference

https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-exclude

Recommended Posts

How to specify non-check target in Flake8
How to define your own target in Sage
How to specify TLS version in python requests
How to specify a schema in Django's database settings
How to develop in Python
A story about how to specify a relative path in python.
How to specify Cache-Control for blob storage in Azure Storage in Python
How to specify command line arguments when debugging in PyCharm
Data science companion in python, how to specify elements in pandas
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to use classes in Theano
How to write soberly in pandas
How to collect images in Python
How to update Spyder in Anaconda
How to use SQLite in Python
How to convert 0.5 to 1056964608 in one shot
How to reflect CSS in Django
How to use Mysql in python
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
How to run TensorFlow 1.0 code in 2.0
How to handle Japanese in Python
How to log in to Docker + NGINX
How to call PyTorch in Julia
How to specify a .py file to load at startup in IPython 0.13
[Beginner memo] How to specify the library reading path in Python
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to suppress display error in matplotlib
How to access environment variables in Python
How to dynamically define variables in Python
How to do R chartr () in Python
How to convert csv to tsv in CLI
How to delete expired sessions in Django
[Itertools.permutations] How to put permutations in Python
How to implement nested serializer in drf-flex-fields
How to work with BigQuery in Python
How to execute commands in jupyter notebook
How to do'git fetch --tags' in GitPython
How to get a stacktrace in python
How to display multiplication table in python
How to reassign index in pandas dataframe
How to use Anaconda interpreter in PyCharm
How to handle consecutive values in MySQL
How to switch python versions in cloud9
How to adjust image contrast in Python
How to use __slots__ in Python class
How to dynamically zero pad in Python
How to do Server-Sent Events in Django
How to use regular expressions in Python
How to implement Scroll View in pythonista 1
How to convert DateTimeField format in Django
How to use Map in Android ViewPager
How to display Hello world in python
How to read CSV files in Pandas
How to change editor color in PyCharm
How to write this process in Perl?
How to use is and == in Python
How to write Ruby to_s in Python