The Yamas and Niyamas from Patanjalis 8 limb path are guidelines for living a yogic lifestyle. These are not “rules” for being a Yogi. Yogis are known for a practice that is non-judgemental. Yogis typically accept and even embrace differences. Therefore, we need to consider these guidelines as suggestions and interpret them ourselves and determine what they mean to us as individuals.
Patanjali is the author of a book called the Yoga Sutra, which is what most modern day yoga philosophy is based. This book is considered extremely important to the foundation of classical yoga and is a great reference for leading a yogic/healthy lifestyle physically, mentally, and spiritually.