You can specify a non-standard file name for a project by adding a couple of parameters to the command:
--file=<file name>
and
--package-manager=<package manager>
The options for <package manager> are currently as follows:
- rubygems: 'RubyGems'
- npm: 'npm'
- yarn: 'Yarn'
- maven: 'Maven'
- pip: 'pip',
- sbt: 'SBT',
- gradle: 'Gradle',
- golangdep: 'dep (Go)',
- gomodules: 'Go Modules',
- govendor: 'govendor',
- nuget: 'NuGet',
- paket: 'Paket',
- composer: 'Composer',
For example:
snyk test --file=requirements_dev.txt --package-manager=pip