Last updated: 2026-03-13
How each tool discovers project-level instruction, guidance, and rule files.
[!NOTE]
When a fixture is not used but needs to be included for some reasons, pylint will rightfully issue a warning. For instance, a fixture setup a specific database state and another fixture include it to ensure database is in a specific state.
@pytest.fixture
def init_database():
"""Setup database state"""
...| volumesDir = r"c:\Users\andra\OneDrive\Projects\SlicerTesting4\20190523-AutoWWWL\volumes" | |
| screenshotsDir = r"c:\Users\andra\OneDrive\Projects\SlicerTesting4\20190523-AutoWWWL\screenshots" | |
| methods = [ | |
| ["baseline", autoContrastSlicerDefault], | |
| ["hist-0.1-99.9", lambda fn: autoContrastVtkImageHistogramStatisticsDefault(fn, 0.1, 99.9, 0.00, 0.0)], # = itksnap | |
| ["hist-1.0-99.9", lambda fn: autoContrastVtkImageHistogramStatisticsDefault(fn, 1.0, 99.9, 0.10, 0.0)], | |
| ["hist-1.0-99.0-x0.10", lambda fn: autoContrastVtkImageHistogramStatisticsDefault(fn, 1.0, 99.0, 0.10, 0.10)], | |
| ["hist-1.0-99.0-x0.20", lambda fn: autoContrastVtkImageHistogramStatisticsDefault(fn, 1.0, 99.0, 0.10, 0.20)], | |
| ] |
| from liqui import Liqui # https://pypi.python.org/pypi/liqui | |
| import datetime | |
| import pandas as pd | |
| api_key = 'YOUR_API_KEY' | |
| api_secret = 'YOU_API_SECRET' | |
| csv_filename = 'liqui_tx.csv' |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
| exit 1 |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
Translations: (No guarantee that the translations are up-to-date)
| import sys | |
| import subprocess | |
| import csv | |
| def describe_ucrt_lib(platform): | |
| lib_path = "windows-10-sdk/Lib/10.0.10240.0/ucrt/{}/ucrt.lib".format(platform) | |
| output = subprocess.check_output(["nm", lib_path]) | |
| output = output.decode("utf-8") | |
| # Output (x86 32-bit) looks like: |