{"action":"created","issue":{"url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/3","repository_url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header","labels_url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/3/comments","events_url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/3/events","html_url":"https://github.com/yevhen-m/flake8-fancy-header/issues/3","id":305380706,"number":3,"title":"Checking filename in header","user":{"login":"rmuslimov","id":1150337,"avatar_url":"https://avatars1.githubusercontent.com/u/1150337?v=4","gravatar_id":"","url":"https://api.github.com/users/rmuslimov","html_url":"https://github.com/rmuslimov","followers_url":"https://api.github.com/users/rmuslimov/followers","following_url":"https://api.github.com/users/rmuslimov/following{/other_user}","gists_url":"https://api.github.com/users/rmuslimov/gists{/gist_id}","starred_url":"https://api.github.com/users/rmuslimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmuslimov/subscriptions","organizations_url":"https://api.github.com/users/rmuslimov/orgs","repos_url":"https://api.github.com/users/rmuslimov/repos","events_url":"https://api.github.com/users/rmuslimov/events{/privacy}","received_events_url":"https://api.github.com/users/rmuslimov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-15T01:04:54Z","updated_at":"2018-03-20T08:04:32Z","closed_at":null,"author_association":"NONE","body":"I think assumption you've made here is incorrect:\r\nhttps://github.com/yevhen-m/flake8-fancy-header/blob/master/flake8_fancy_header/checker.py#L24\r\n\r\nPath python started from have nothing to deal with name of the file it checks. For example, my checker runs from different directory. Can you just check that given path exist on given machine and stop. \r\nFor example you have `fokker.hotels.sell` just check that relpath exist for give file. \r\nOther solution you can be search for first `setup.cfg` down in the path. "},"comment":{"url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/comments/374508417","html_url":"https://github.com/yevhen-m/flake8-fancy-header/issues/3#issuecomment-374508417","issue_url":"https://api.github.com/repos/yevhen-m/flake8-fancy-header/issues/3","id":374508417,"user":{"login":"yevhen-m","id":10185058,"avatar_url":"https://avatars3.githubusercontent.com/u/10185058?v=4","gravatar_id":"","url":"https://api.github.com/users/yevhen-m","html_url":"https://github.com/yevhen-m","followers_url":"https://api.github.com/users/yevhen-m/followers","following_url":"https://api.github.com/users/yevhen-m/following{/other_user}","gists_url":"https://api.github.com/users/yevhen-m/gists{/gist_id}","starred_url":"https://api.github.com/users/yevhen-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yevhen-m/subscriptions","organizations_url":"https://api.github.com/users/yevhen-m/orgs","repos_url":"https://api.github.com/users/yevhen-m/repos","events_url":"https://api.github.com/users/yevhen-m/events{/privacy}","received_events_url":"https://api.github.com/users/yevhen-m/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T08:04:32Z","updated_at":"2018-03-20T08:04:32Z","author_association":"OWNER","body":"@rmuslimov you are absolutely right. This path resolution approach does not work if you don't run flake8 from the project's root. Btw, you run flake8 from inside emacs which does not have  project's root as its cwd, correct? If not, please tell me what's your usage pattern, just curious.\r\n\r\n> Can you just check that given path exist on given machine and stop\r\n\r\nThat's definitely not an option here because I still need to validate python module's header. \r\n\r\n> Other solution you can be search for first setup.cfg down in the path.\r\n\r\nI guess this is the way to fix your issue while preserving all the plugin's functionality."}}
{"actor":{"display_login":"yevhen-m"}}